]> khamidou — GitHub mirrors - electron.git/commitdiff
Always use top window's context for resolving url
authorCheng Zhao <zcbenz@gmail.com>
Fri, 10 Jul 2015 05:54:30 +0000 (13:54 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 10 Jul 2015 05:57:09 +0000 (13:57 +0800)
Refs #2166.

atom/renderer/lib/override.coffee

index fad18943e7725b67893a22b49f2e6624cc2b3098..85914b116fd64915c16da10f5eeba2a68adf709b 100644 (file)
@@ -3,7 +3,7 @@ ipc = require 'ipc'
 remote = require 'remote'
 
 # Helper function to resolve relative url.
-a = document.createElement 'a'
+a = window.top.document.createElement 'a'
 resolveUrl = (url) ->
   a.href = url
   a.href