This commit is contained in:
Feross Aboukhadijeh
2019-07-27 18:33:46 -07:00
parent c8f1e23b1a
commit 91400ae31c

View File

@@ -120,21 +120,21 @@ function init () {
*/ */
ipc.on('startFolderWatcher', function () { ipc.on('startFolderWatcher', function () {
if (!modules['folderWatcher']) { if (!modules.folderWatcher) {
log('IPC ERR: folderWatcher module is not defined.') log('IPC ERR: folderWatcher module is not defined.')
return return
} }
modules['folderWatcher'].start() modules.folderWatcher.start()
}) })
ipc.on('stopFolderWatcher', function () { ipc.on('stopFolderWatcher', function () {
if (!modules['folderWatcher']) { if (!modules.folderWatcher) {
log('IPC ERR: folderWatcher module is not defined.') log('IPC ERR: folderWatcher module is not defined.')
return return
} }
modules['folderWatcher'].stop() modules.folderWatcher.stop()
}) })
/** /**