Skip to content

Commit

Permalink
Merge pull request #197 from KELiON/feature/quit-on-close
Browse files Browse the repository at this point in the history
Quit application when main window is closed
  • Loading branch information
KELiON authored Mar 1, 2017
2 parents 82a3e01 + ba69b38 commit fddae4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/main/createWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export default ({ src, isDev }) => {
config.set('positions', positions)
}, 100))

mainWindow.on('close', app.quit)

mainWindow.webContents.on('new-window', (event, url) => {
shell.openExternal(url)
event.preventDefault()
Expand Down

0 comments on commit fddae4e

Please sign in to comment.