Use host from current page, nog from config

This commit is contained in:
Ruud
2012-03-18 17:25:23 +01:00
parent 59c2e101d7
commit 4cca9fbb6a
@@ -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': {