configurable watch node

This commit is contained in:
mschlgl 2024-12-10 13:23:39 +01:00
parent ce1e1139a5
commit 9bd8ec9f62

View File

@ -94,7 +94,7 @@ module.exports = function(RED) {
if (n.filesType != 'msg') configureWatcher(node, n);
node.close = function() {
node.watcher.close();
if (node.watcher) node.watcher.close();
}
}
RED.nodes.registerType("watch", WatchNode);