Skip to content

Commit

Permalink
add app.quit
Browse files Browse the repository at this point in the history
  • Loading branch information
DaxChen committed Sep 21, 2015
1 parent 376c4d9 commit e66e411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ var app = require('app');
var Menu = require('menu');
var BrowserWindow = require('browser-window');

app.on('window-all-closed', function() {
app.quit();
});

app.on('ready', function() {
var mainWindow = new BrowserWindow({
center: true,
Expand Down
4 changes: 4 additions & 0 deletions localhost.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ var app = require('app');
var Menu = require('menu');
var BrowserWindow = require('browser-window');

app.on('window-all-closed', function() {
app.quit();
});

app.on('ready', function() {
var mainWindow = new BrowserWindow({
center: true,
Expand Down

0 comments on commit e66e411

Please sign in to comment.