Always use top window's context for resolving url

Refs #2166.
This commit is contained in:
Cheng Zhao 2015-07-10 13:54:30 +08:00
parent a24d2921af
commit 967c273ddb

View 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