From b211aeb41fe4bc959092cb08ea18528272f58014 Mon Sep 17 00:00:00 2001 From: iw0 Date: Wed, 1 May 2024 15:35:24 +0200 Subject: [PATCH] update stuff --- bg.js | 17 +++++++++++++++++ changelog.htm | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 bg.js create mode 100644 changelog.htm diff --git a/bg.js b/bg.js new file mode 100644 index 0000000..fed710c --- /dev/null +++ b/bg.js @@ -0,0 +1,17 @@ +browser.runtime.onInstalled.addListener((ev) => { + if (ev.reason == "update") { + launchInfoPage(); + // TODO determine how to launch the page only when there are important changes + } else if (ev.reason == "install") { + browser.runtime.openOptionsPage() + } +}) + +async function updateIsSignificant(previousVersion) { + const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"]; + let currentVersion = (await browser.management.getSelf()).version; + return currentVersion in significantUpdates; +} +function launchInfoPage(){ + browser.tabs.create({url: "/changelog.htm", active: false}) +} \ No newline at end of file diff --git a/changelog.htm b/changelog.htm new file mode 100644 index 0000000..b5a3849 --- /dev/null +++ b/changelog.htm @@ -0,0 +1,15 @@ + + + + + + BC100 Autofill :: Changelog + + +

BC100 Autofill has been updated

+

New feature since v0.2.1:

+ + + \ No newline at end of file