We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54bf67 commit fa835beCopy full SHA for fa835be
lib/DirectoryWatcher.js
@@ -106,13 +106,14 @@ class DirectoryWatcher extends EventEmitter {
106
}
107
108
};
109
+ this.watcher.on("change", this.onWatchEvent.bind(this));
110
} else {
111
if (IS_OSX) {
112
this.watchInParentDirectory();
113
114
this.watcher = watchEventSource.watch(this.path);
- this.watcher.on("change", this.onWatchEvent.bind(this));
115
this.watcher.on("error", this.onWatcherError.bind(this));
116
117
118
} catch (err) {
119
this.onWatcherError(err);
0 commit comments