Move isProxyRequest and gotoSite to minimal ZeroFrame wrapper

This commit is contained in:
shortcutme 2018-02-21 03:06:48 +01:00
parent 93162beaa0
commit 5275988f37
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -515,18 +515,6 @@ class Wrapper
$("iframe").attr "src", src
return false
isProxyRequest: ->
return window.location.pathname == "/"
gotoSite: (elem) =>
href = $(elem).attr("href")
if @isProxyRequest() # Fix for proxy request
$(elem).attr("href", "http://zero#{href}")
log: (args...) ->
console.log "[Wrapper]", args...