Fix context menus not being initialized in Firefox.

This commit is contained in:
Bauke 2022-03-21 10:42:39 +01:00
parent 587f049e08
commit 1abab7f635
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ if (import.meta.env.VITE_BROWSER === 'chromium') {
browser.action.onClicked.addListener(actionClicked); browser.action.onClicked.addListener(actionClicked);
} else { } else {
browser.browserAction.onClicked.addListener(browserActionClicked); browser.browserAction.onClicked.addListener(browserActionClicked);
void initializeContextMenus();
} }
browser.runtime.onInstalled.addListener(async () => { browser.runtime.onInstalled.addListener(async () => {