Merge pull request #11921 from electron/allow-osr-console-message
Emit console-message in OSR mode
This commit is contained in:
commit
7e2f7602c1
1 changed files with 1 additions and 6 deletions
|
@ -481,12 +481,7 @@ bool WebContents::DidAddMessageToConsole(content::WebContents* source,
|
|||
const base::string16& message,
|
||||
int32_t line_no,
|
||||
const base::string16& source_id) {
|
||||
if (type_ == OFF_SCREEN) {
|
||||
return false;
|
||||
} else {
|
||||
Emit("console-message", level, message, line_no, source_id);
|
||||
return true;
|
||||
}
|
||||
return Emit("console-message", level, message, line_no, source_id);
|
||||
}
|
||||
|
||||
void WebContents::OnCreateWindow(
|
||||
|
|
Loading…
Reference in a new issue