Aug 31, 2018 · 1 min read
@Charles Sprayberry
From the electron Getting Started page, you should be able to simply quit the process when the last window is closed by adding the following:
// Quit when all windows are closed.
app.on(‘window-all-closed’, () => {
if (process.platform !== ‘darwin’) { app.quit() }
})