Proper link to userscript when updating

This commit is contained in:
Ruud
2012-03-05 11:40:26 +01:00
parent d8a126cac4
commit 2f69a0694c
@@ -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});
}