Add link to releases (version check)
This commit is contained in:
parent
53aaf16f5a
commit
6aae88df72
@ -9,11 +9,11 @@ fetch(manifest_new)
|
||||
response.json().then(json => {
|
||||
var version_new = json['version'];
|
||||
if (version_new > manifestData.version) {
|
||||
versionString_new = 'New release v' + version_new;
|
||||
versionString_new = 'New release v' + version_new.link("https://github.com/magnolia1234/bypass-paywalls-chrome-clean/releases").replace('a href=', 'a target="_blank" href=');
|
||||
} else {
|
||||
versionString_new = 'Latest release';
|
||||
versionString_new = ''; //'Latest release';
|
||||
}
|
||||
document.getElementById('version_new').innerText = versionString_new;
|
||||
document.getElementById('version_new').innerHTML = versionString_new;
|
||||
})
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user