Browse Source

Proper link to userscript when updating

pull/84/head
Ruud 13 years ago
parent
commit
2f69a0694c
  1. 2
      couchpotato/core/plugins/userscript/static/userscript.js

2
couchpotato/core/plugins/userscript/static/userscript.js

@ -90,7 +90,7 @@ window.addEvent('load', function(){
if(your_version && your_version < latest_version && checked_already < latest_version){
if(confirm("Update to the latest Userscript?\nYour version: " + your_version + ', new version: ' + latest_version )){
document.location = Api.getOption('url')+'userscript.get/?couchpotato.user.js';
document.location = Api.getOption('url')+'userscript.get/couchpotato.user.js';
}
Cookie.write(key, latest_version, {duration: 100});
}

Loading…
Cancel
Save