From ac91156288ccc149cab51190a912979b20afee6c Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 5 Aug 2012 14:46:19 +0200 Subject: [PATCH] Firefox bookmarklet isn't run as function. fix #681 --- couchpotato/core/plugins/userscript/template.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/userscript/template.js b/couchpotato/core/plugins/userscript/template.js index e200afb0..8b07272b 100644 --- a/couchpotato/core/plugins/userscript/template.js +++ b/couchpotato/core/plugins/userscript/template.js @@ -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(); \ No newline at end of file + setVersion(); + +} \ No newline at end of file