From eb4b9a55290d823a713ea53d71051c8e03c2fa1c Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Fri, 15 Sep 2017 21:22:44 +0900 Subject: [PATCH] Fix wrong require for main process --- src/main/squirrelStartup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/squirrelStartup.js b/src/main/squirrelStartup.js index 5f738052..1e1d56a4 100644 --- a/src/main/squirrelStartup.js +++ b/src/main/squirrelStartup.js @@ -1,5 +1,5 @@ const AutoLaunch = require('auto-launch'); -const {remote} = require('electron'); +const {app} = require('electron'); function shouldQuitApp(cmd) { if (process.platform !== 'win32') { @@ -10,7 +10,7 @@ function shouldQuitApp(cmd) { async function setupAutoLaunch(cmd) { const appLauncher = new AutoLaunch({ - name: remote.app.getName(), + name: app.getName(), isHidden: true }); if (cmd === '--squirrel-uninstall') {