background.js: init

This commit is contained in:
He4eT 2024-01-19 19:43:11 +01:00
commit b6a89a2713
2 changed files with 7 additions and 0 deletions

4
background.js Normal file
View file

@ -0,0 +1,4 @@
browser.action.onClicked.addListener((() =>
browser.tabs.create({
url: 'https://oddsquat.org'
})))

View file

@ -2,6 +2,9 @@
"action": { "action": {
"default_title": "Tabswitcher" "default_title": "Tabswitcher"
}, },
"background": {
"scripts": ["background.js"]
},
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "tabswitcher@oddsquat.org", "id": "tabswitcher@oddsquat.org",