From 7c65d05b02c15267b5aabeceac95f00afafef004 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 22 Sep 2015 19:59:32 +0800 Subject: [PATCH] Don't print error when window.open failed --- atom/renderer/lib/override.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/atom/renderer/lib/override.coffee b/atom/renderer/lib/override.coffee index 6e6164a8f264..5cffdd486d9c 100644 --- a/atom/renderer/lib/override.coffee +++ b/atom/renderer/lib/override.coffee @@ -70,7 +70,6 @@ window.open = (url, frameName='', features='') -> if guestId new BrowserWindowProxy(guestId) else - console.error 'It is not allowed to open new window from this WebContents' null # Use the dialog API to implement alert().