Implement beforeunload event.
Unlike normal browser which would show a dialog to choose whether to continue, you can just return a empty string in the handler to prevent unloading.
This commit is contained in:
parent
bcf6cd9f1b
commit
a674572dd4
5 changed files with 73 additions and 0 deletions
2
atom.gyp
2
atom.gyp
|
@ -39,6 +39,8 @@
|
|||
'browser/atom_browser_main_parts.h',
|
||||
'browser/atom_event_processing_window.h',
|
||||
'browser/atom_event_processing_window.mm',
|
||||
'browser/atom_javascript_dialog_manager.cc',
|
||||
'browser/atom_javascript_dialog_manager.h',
|
||||
'browser/native_window.cc',
|
||||
'browser/native_window.h',
|
||||
'browser/native_window_mac.h',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue