diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 93aea9632e..83adf62eee 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -481,8 +481,7 @@ bool WebContents::DidAddMessageToConsole(content::WebContents* source, const base::string16& message, int32_t line_no, const base::string16& source_id) { - Emit("console-message", level, message, line_no, source_id); - return true; + return Emit("console-message", level, message, line_no, source_id); } void WebContents::OnCreateWindow(