diff --git a/src/main/ipc.js b/src/main/ipc.js index 4c0a3d42..baf76f72 100644 --- a/src/main/ipc.js +++ b/src/main/ipc.js @@ -120,21 +120,21 @@ function init () { */ ipc.on('startFolderWatcher', function () { - if (!modules['folderWatcher']) { + if (!modules.folderWatcher) { log('IPC ERR: folderWatcher module is not defined.') return } - modules['folderWatcher'].start() + modules.folderWatcher.start() }) ipc.on('stopFolderWatcher', function () { - if (!modules['folderWatcher']) { + if (!modules.folderWatcher) { log('IPC ERR: folderWatcher module is not defined.') return } - modules['folderWatcher'].stop() + modules.folderWatcher.stop() }) /**