Skip to content

Commit

Permalink
emit console-message in OSR mode
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 14, 2018
1 parent 402201a commit c3d11a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions atom/browser/api/atom_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,8 @@ 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;
}
Emit("console-message", level, message, line_no, source_id);
return true;
}

void WebContents::OnCreateWindow(
Expand Down

0 comments on commit c3d11a5

Please sign in to comment.