Don't show userscript update, if userscript isn't installed.
This commit is contained in:
1 parent
9253723e85
commit
492162b851
1 file changed
+1
-1
@@ -104,7 +104,7 @@ window.addEvent('load', function(){
|
|||||||
key = 'cp_version_check',
|
key = 'cp_version_check',
|
||||||
checked_already = Cookie.read(key);
|
checked_already = Cookie.read(key);
|
||||||
|
|
||||||
if(your_version < latest_version && checked_already < latest_version){
|
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 )){
|
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';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user