]> khamidou — GitHub mirrors - electron.git/commitdiff
Revert ":lipstick: for the beforeunload handler."
authorCheng Zhao <zcbenz@gmail.com>
Mon, 2 Sep 2013 08:39:00 +0000 (16:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 2 Sep 2013 08:39:00 +0000 (16:39 +0800)
Restore the previous behavior of beforeunload handler.

This reverts commit b1f30c1eb609c8abab2db791cbbf0b01373564b1.

browser/atom_javascript_dialog_manager.cc

index f06a42680b749bac25ff7eff5d27b7acae927f1f..83f80a89f57256932265797bbae0bdae86e7f56a 100644 (file)
@@ -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);
 }