Revert "💄 for the beforeunload handler."
Restore the previous behavior of beforeunload handler.
This reverts commit b1f30c1eb6
.
This commit is contained in:
parent
cfb957a603
commit
610ac5b045
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue