From 4cca9fbb6a9b5e7ec9b6b6780d56ed03b5ddce9f Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 18 Mar 2012 17:25:23 +0100 Subject: [PATCH] Use host from current page, nog from config --- couchpotato/core/plugins/userscript/static/userscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/userscript/static/userscript.js b/couchpotato/core/plugins/userscript/static/userscript.js index f47825ea..bdf0f27c 100644 --- a/couchpotato/core/plugins/userscript/static/userscript.js +++ b/couchpotato/core/plugins/userscript/static/userscript.js @@ -87,7 +87,7 @@ var UserscriptSettingTab = new Class({ new Element('a.button.green', { 'text': '+CouchPotato', 'href': "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','" + - Api.getOption('host') + '/userscript.bookmark/' + + window.location.protocol + '//' + window.location.host + Api.createUrl('userscript.bookmark') + "?r='+Math.random()*99999999);document.body.appendChild(e)})());", 'target': '', 'events': {