manifest_v3

This commit is contained in:
Thomas Rupprecht 2023-01-19 00:51:59 +01:00
parent 5e0182c513
commit a3890589b3
2 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,8 @@ async function fetchNewData() {
const badgeText = browser.i18n.getMessage(spaceApiJson.state.open ? 'badgeOpen' : eventActive ? 'badgeEvent' : 'badgeClosed');
const badgeBgColor = spaceApiJson.state.open ? BADGE_COLORS.open : eventActive ? BADGE_COLORS.event : BADGE_COLORS.closed;
await browser.browserAction.setBadgeText({text: badgeText});
await browser.browserAction.setBadgeBackgroundColor({color: badgeBgColor});
await browser.action.setBadgeText({text: badgeText});
await browser.action.setBadgeBackgroundColor({color: badgeBgColor});
const {spaceApi} = await browser.storage.local.get('spaceApi');
if (spaceApi && spaceApi.state.open !== spaceApiJson.state.open) {

View File

@ -1,5 +1,5 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "0.8.7",
@ -10,7 +10,7 @@
"background": {
"page": "background.html"
},
"browser_action": {
"action": {
"browser_style": true,
"default_title": "__MSG_buttonTitle__",
"default_icon": "icons/favicon.svg",