We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed99bd6 + e035f48 commit 7f42998Copy full SHA for 7f42998
1 file changed
electron-webpack-vuejs/src/main/index.js
@@ -17,8 +17,13 @@ app.on('ready', () => {
17
slashes: true
18
}))
19
}
20
- window.on('closed', function(){
21
- window = null
22
- app.quit()
+ window.on("closed", () => {
+ window = null;
23
})
+})
24
+
25
+app.on("window-all-closed", () => {
26
+ if (process.platform !== "darwin") {
27
+ app.quit();
28
+ }
29
0 commit comments