Merge pull request #11921 from electron/allow-osr-console-message

Emit console-message in OSR mode
This commit is contained in:
shelley vohr 2018-02-14 11:02:18 -05:00 committed by GitHub
commit 7e2f7602c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(