Move isProxyRequest and gotoSite to minimal ZeroFrame wrapper
This commit is contained in:
parent
93162beaa0
commit
5275988f37
1 changed files with 0 additions and 12 deletions
|
@ -515,18 +515,6 @@ class Wrapper
|
||||||
$("iframe").attr "src", src
|
$("iframe").attr "src", src
|
||||||
return false
|
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...) ->
|
log: (args...) ->
|
||||||
console.log "[Wrapper]", args...
|
console.log "[Wrapper]", args...
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue