Firefox bookmarklet isn't run as function. fix #681
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
|
||||
// ==/UserScript==
|
||||
|
||||
if (window.top != window.self) // Only run on top window
|
||||
return;
|
||||
if (window.top == window.self){ // Only run on top window
|
||||
|
||||
var version = {{version}},
|
||||
host = '{{host}}',
|
||||
@@ -135,4 +134,6 @@ var setVersion = function(){
|
||||
if(document.location.href.indexOf(host) == -1)
|
||||
osd();
|
||||
else
|
||||
setVersion();
|
||||
setVersion();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user