Fix context menus not being initialized in Firefox.
This commit is contained in:
parent
587f049e08
commit
1abab7f635
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue