Skip to content

Commit 6c348cc

Browse files
committed
make contextMenus available on the MV3 unified 'action' icon as well as the legacy 'page'
1 parent b3bbe3b commit 6c348cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/service_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Analytics from './google-analytics.js';
99
* @see {@link https://developer.chrome.com/docs/extensions/develop/ui/context-menu}
1010
*/
1111
chrome.runtime.onInstalled.addListener(async (details) => {
12-
const menuContexts = ["page"];
12+
const menuContexts = ["page", "action"];
1313

1414
const menuRoot = chrome.contextMenus.create({
1515
contexts: menuContexts,

0 commit comments

Comments
 (0)