From 91400ae31c04940c2977f126fcd4016301043923 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 27 Jul 2019 18:33:46 -0700 Subject: [PATCH] standard --- src/main/ipc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() }) /**