From 31b074ff0e28f8695e6f74047a3cb6972bf33cba Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 14 Feb 2018 09:28:21 -0500 Subject: [PATCH] change to return emit --- atom/browser/api/atom_api_web_contents.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 93aea9632e5..83adf62eee8 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(