Make beforeunload work in webview
This commit is contained in:
parent
36d2512ff8
commit
bfac7f7a17
3 changed files with 13 additions and 1 deletions
|
@ -27,7 +27,6 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
|
|||
const base::string16& message_text,
|
||||
bool is_reload,
|
||||
const DialogClosedCallback& callback) {
|
||||
|
||||
bool prevent_reload = message_text.empty() ||
|
||||
message_text == base::ASCIIToUTF16("false");
|
||||
callback.Run(!prevent_reload, message_text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue