semver lol
This commit is contained in:
parent
5dda9e52d9
commit
ff9f955ffc
2
bg.js
2
bg.js
@ -14,7 +14,7 @@ browser.runtime.onInstalled.addListener((ev) => {
|
|||||||
async function updateIsSignificant(previousVersion) {
|
async function updateIsSignificant(previousVersion) {
|
||||||
const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
|
const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
|
||||||
let currentVersion = (await browser.management.getSelf()).version;
|
let currentVersion = (await browser.management.getSelf()).version;
|
||||||
return (currentVersion in significantUpdates) || currentVersion.endsWith('0');
|
return (currentVersion in significantUpdates) || currentVersion.endsWith('.0'); // semver! :D
|
||||||
}
|
}
|
||||||
function launchInfoPage(){
|
function launchInfoPage(){
|
||||||
browser.tabs.create({url: "/changelog.htm", active: false})
|
browser.tabs.create({url: "/changelog.htm", active: false})
|
||||||
|
Loading…
Reference in New Issue
Block a user