diff --git a/main.js b/main.js index 31b6865..29ae36f 100644 --- a/main.js +++ b/main.js @@ -15,3 +15,8 @@ const createWindow = () => { app.whenReady().then(() => { createWindow() }) + +// Quit the app when all windows are closed (for windows and linux only) +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') app.quit() +})