browser action

This commit is contained in:
iw0
2024-07-29 20:06:35 +02:00
parent 048724f142
commit beea705bb0
4 changed files with 21 additions and 1 deletions

6
bg.js
View File

@@ -11,6 +11,12 @@ browser.runtime.onInstalled.addListener((ev) => {
}
})
browser.browserAction.onClicked.addListener((tab, info) => {
browser.tabs.create({
url: "https://www.bahn.de/buchung/fahrgastrechte?einstiegtyp=BC100"
})
})
async function updateIsSignificant(previousVersion) {
const significantUpdates = ["0.1.0", "0.2.0", "0.3.0"];
let currentVersion = (await browser.management.getSelf()).version;