Skip to content

Commit 15fe0ec

Browse files
committed
Remove the url string form alert, confirm and prompt dialog. Fix nwjs#392.
1 parent ffa8782 commit 15fe0ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/browser/shell_javascript_dialog_creator.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@ void ShellJavaScriptDialogCreator::RunJavaScriptDialog(
6262
return;
6363
}
6464

65-
string16 new_message_text = net::FormatUrl(origin_url, accept_lang) +
66-
ASCIIToUTF16("\n\n") +
67-
message_text;
6865
gfx::NativeWindow parent_window =
6966
web_contents->GetView()->GetTopLevelNativeWindow();
7067

7168
dialog_.reset(new ShellJavaScriptDialog(this,
7269
parent_window,
7370
javascript_message_type,
74-
new_message_text,
71+
message_text,
7572
default_prompt_text,
7673
callback));
7774
#else

0 commit comments

Comments
 (0)