forked from imbytecat/fullstack-starter
fix(desktop): force app exit on windows window close
This commit is contained in:
@@ -145,6 +145,10 @@ app.whenReady().then(createWindow)
|
|||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform !== 'darwin') {
|
||||||
stopServerProcess()
|
stopServerProcess()
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
app.exit(0)
|
||||||
|
return
|
||||||
|
}
|
||||||
app.quit()
|
app.quit()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user