]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix `window.open` with wrong name
authorJohn Haley <john@haley.io>
Mon, 29 Jun 2015 17:32:27 +0000 (10:32 -0700)
committerJohn Haley <john@haley.io>
Mon, 29 Jun 2015 17:32:27 +0000 (10:32 -0700)
When calling `window.open` the newly created window would have the name of the last option in the `features` argument as the title. I think it's supposed to be pointed to `frameName`.

atom/renderer/lib/override.coffee

index 4c2b64a816e0a7fb7d3fd22e7da0503079b51835..7c32727cdb04064e66ebc603f5b479ac54c43a2c 100644 (file)
@@ -45,7 +45,7 @@ window.open = (url, frameName='', features='') ->
         value
   options.x ?= options.left if options.left
   options.y ?= options.top if options.top
-  options.title ?= name
+  options.title ?= frameName
   options.width ?= 800
   options.height ?= 600