Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: update Electron, comment deprecated makeSingleInstance call
Browse files Browse the repository at this point in the history
  • Loading branch information
aeriform-io committed Feb 15, 2020
1 parent 06457d1 commit 3a88c9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
`)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3a88c9f

Please # to comment.