Ask for close confirmation in beforeunload handler.

This commit is contained in:
Cheng Zhao
2013-06-27 18:39:29 +08:00
parent bdbec54f24
commit 45ce8e1d63
5 changed files with 5 additions and 20 deletions

View File

@@ -210,10 +210,6 @@ window.restoreDimensions = ->
window.setDimensions(dimensions)
$(window).on 'unload', -> atom.setWindowState('dimensions', window.getDimensions())
window.closeWithoutConfirm = ->
atom.hide()
ipc.sendChannel 'close-without-confirm'
window.onerror = ->
atom.openDevTools()