Open landing page on installs
This commit is contained in:
parent
de1b13a50f
commit
856044c88c
@ -152,11 +152,16 @@ runtime.onInstalled.addListener(({reason, previousVersion}: OnInstalled) => {
|
|||||||
const {version} = runtime.getManifest();
|
const {version} = runtime.getManifest();
|
||||||
const major = getMajor(version);
|
const major = getMajor(version);
|
||||||
const prevMajor = getMajor(previousVersion);
|
const prevMajor = getMajor(previousVersion);
|
||||||
if (reason === "install" || (reason === "update" && major !== prevMajor)) {
|
if (reason === "update" && major !== prevMajor) {
|
||||||
tabs.create({
|
tabs.create({
|
||||||
url: `https://about.downthemall.org/changelog/?cur=${major}&prev=${prevMajor}`,
|
url: `https://about.downthemall.org/changelog/?cur=${major}&prev=${prevMajor}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if (reason === "install") {
|
||||||
|
tabs.create({
|
||||||
|
url: `https://about.downthemall.org/4.0/?cur=${major}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
locale.then(() => {
|
locale.then(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user