Firefox bookmarklet isn't run as function. fix #681
This commit is contained in:
1 parent
de532cb7ee
commit
ac91156288
1 file changed
+3
-2
@@ -12,8 +12,7 @@
|
|||||||
|
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
if (window.top != window.self) // Only run on top window
|
if (window.top == window.self){ // Only run on top window
|
||||||
return;
|
|
||||||
|
|
||||||
var version = {{version}},
|
var version = {{version}},
|
||||||
host = '{{host}}',
|
host = '{{host}}',
|
||||||
@@ -136,3 +135,5 @@ if(document.location.href.indexOf(host) == -1)
|
|||||||
osd();
|
osd();
|
||||||
else
|
else
|
||||||
setVersion();
|
setVersion();
|
||||||
|
|
||||||
|
}
|
||||||
Reference in new issue
Block a user