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

This commit is contained in:
Ruud
2012-08-05 14:46:19 +02:00
parent de532cb7ee
commit ac91156288
@@ -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();
}