Skip to content

Commit df82325

Browse files
author
Willy Weise
committed
Added app.quit() at main/index.js when closing the window so that process of the app quits running in the background
1 parent 4cdd81a commit df82325

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ app.on('ready', () => {
1717
slashes: true
1818
}))
1919
}
20+
window.on('closed', function(){
21+
window = null
22+
app.quit()
23+
})
2024
})

0 commit comments

Comments
 (0)