Add link to releases (version check)

This commit is contained in:
magnolia1234 2020-03-06 12:11:41 +01:00 committed by GitHub
parent 53aaf16f5a
commit 6aae88df72

View File

@ -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;
})
}
});