mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Ask for close confirmation in beforeunload handler.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user