mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Revert "💄 for the beforeunload handler."
Restore the previous behavior of beforeunload handler.
This reverts commit b1f30c1eb6.
This commit is contained in:
@@ -13,7 +13,8 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
|
||||
const string16& message_text,
|
||||
bool is_reload,
|
||||
const DialogClosedCallback& callback) {
|
||||
bool prevent_reload = !message_text.empty() ||
|
||||
|
||||
bool prevent_reload = message_text.empty() ||
|
||||
message_text == ASCIIToUTF16("false");
|
||||
callback.Run(!prevent_reload, message_text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user