Skip to content

Commit 7f42998

Browse files
authored
Merge pull request #20 from elbiber/master
app.quit
2 parents ed99bd6 + e035f48 commit 7f42998

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

electron-webpack-vuejs/src/main/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ app.on('ready', () => {
1717
slashes: true
1818
}))
1919
}
20-
window.on('closed', function(){
21-
window = null
22-
app.quit()
20+
window.on("closed", () => {
21+
window = null;
2322
})
23+
})
24+
25+
app.on("window-all-closed", () => {
26+
if (process.platform !== "darwin") {
27+
app.quit();
28+
}
2429
})

0 commit comments

Comments
 (0)