From 3a88c9f42aff12a12f8c43defcbae75a9ae22073 Mon Sep 17 00:00:00 2001 From: Michael Christophersson Date: Sat, 15 Feb 2020 10:57:12 +0000 Subject: [PATCH] fix: update Electron, comment deprecated makeSingleInstance call --- index.js | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index 33292e6f..15b0542a 100644 --- a/index.js +++ b/index.js @@ -16,9 +16,9 @@ if (typeof process.env.NODE_V === 'string' && process.env.NODE_V !== process.ver You are using a different version of Node than is used in this electron release! - Used Version: ${process.env.NODE_V} - Electron's Node Version: ${process.version} - + We recommend running: - + $ nvm install ${process.version}; npm rebuild; `) @@ -91,13 +91,13 @@ app.on('window-all-closed', () => { app.quit() }) -const quit = app.makeSingleInstance(() => { - if (!win) return - if (win.isMinimized()) win.restore() - win.focus() -}) - -if (quit) app.quit() +// const quit = app.makeSingleInstance(() => { +// if (!win) return +// if (win.isMinimized()) win.restore() +// win.focus() +// }) +// +// if (quit) app.quit() function watchAndReload () { let gaze diff --git a/package.json b/package.json index eb0f22ac..354ba31e 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "cross-env": "^5.1.6", "del": "^3.0.0", "dependency-check": "^3.1.0", - "electron": "^3.0.8", + "electron": "^8.0.1", "electron-builder": "^20.31.2", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1",