Skip to content

Commit

Permalink
Fix - Error when operating on closed window kamranahmedse#58
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Nov 5, 2018
1 parent b75ff11 commit c9a6369
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ app.on('activate', disableDetachedMode);

// Quit when all windows are closed.
app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit();
}
app.quit();
});

app.on('activate', function () {
Expand Down

0 comments on commit c9a6369

Please sign in to comment.