mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
configurable watch node
This commit is contained in:
parent
ce1e1139a5
commit
9bd8ec9f62
@ -94,7 +94,7 @@ module.exports = function(RED) {
|
|||||||
if (n.filesType != 'msg') configureWatcher(node, n);
|
if (n.filesType != 'msg') configureWatcher(node, n);
|
||||||
|
|
||||||
node.close = function() {
|
node.close = function() {
|
||||||
node.watcher.close();
|
if (node.watcher) node.watcher.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("watch", WatchNode);
|
RED.nodes.registerType("watch", WatchNode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user