]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't print error when window.open failed
authorCheng Zhao <zcbenz@gmail.com>
Tue, 22 Sep 2015 11:59:32 +0000 (19:59 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 22 Sep 2015 11:59:32 +0000 (19:59 +0800)
atom/renderer/lib/override.coffee

index 6e6164a8f2648c882e54291a7a175c9422d0ec2f..5cffdd486d9ca2f0c5e3d73725e570286b963870 100644 (file)
@@ -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().