Enable the quitAndInstall to be cancelled by beforeunload handler.

This commit is contained in:
Cheng Zhao
2014-02-17 16:25:00 +08:00
parent 07fc2b41af
commit 274c9d04b1
3 changed files with 2 additions and 17 deletions

View File

@@ -50,16 +50,6 @@ window.onerror = (error) ->
else
false
# Enable browser to close window silently.
setTimeout ->
require('ipc').once 'ATOM_SHELL_SILENT_CLOSE', ->
window.onbeforeunload = null
window.close()
# Override default window.close.
window.close = ->
require('remote').getCurrentWindow().close()
# Override default window.open.
window.open = (url, name, features) ->
options = {}