diff --git a/README.md b/README.md index 508ff43..a58bd9a 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ require('crash-reporter').start({ var mainWindow = null; var appIcon = null; // Kill the app when all windows are closed -app.on('mainWindow-all-closed', function() { +app.on('window-all-closed', function() { if (process.platform != 'darwin') { app.quit(); } diff --git a/main.js b/main.js index e6b09f4..47a79a1 100644 --- a/main.js +++ b/main.js @@ -16,7 +16,7 @@ require('crash-reporter').start({ var mainWindow = null; var appIcon = null; // Kill the app when all windows are closed -app.on('mainWindow-all-closed', function() { +app.on('window-all-closed', function() { if (process.platform != 'darwin') { app.quit(); }