Allow BrowserWindows to emit console-message
events.
This commit is contained in:
parent
5383b4809f
commit
c260a0ab78
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ bool WebContents::DidAddMessageToConsole(content::WebContents* source,
|
|||
const base::string16& message,
|
||||
int32_t line_no,
|
||||
const base::string16& source_id) {
|
||||
if (type_ == BROWSER_WINDOW || type_ == OFF_SCREEN) {
|
||||
if (type_ == OFF_SCREEN) {
|
||||
return false;
|
||||
} else {
|
||||
Emit("console-message", level, message, line_no, source_id);
|
||||
|
|
Loading…
Reference in a new issue