Firefox bookmarklet isn't run as function. fix #681

This commit is contained in:
Ruud committed 2012-08-05 14:46:19 +02:00
1 parent de532cb7ee
commit ac91156288
1 file changed
+4 -3
@@ -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}}',
@@ -135,4 +134,6 @@ var setVersion = function(){
if(document.location.href.indexOf(host) == -1) if(document.location.href.indexOf(host) == -1)
osd(); osd();
else else
setVersion(); setVersion();
}