Skip to content

Commit fbd844b

Browse files
committed
fix: ensure all contextMenus have id's set
1 parent 399d9c9 commit fbd844b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/service_worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ chrome.runtime.onInstalled.addListener(() => {
1111

1212
const menuRoot = chrome.contextMenus.create({
1313
contexts: menuContexts,
14+
id: 'rootContextMenu',
1415
title: "New window with.."
1516
});
1617

@@ -31,6 +32,7 @@ chrome.runtime.onInstalled.addListener(() => {
3132
chrome.contextMenus.create({
3233
contexts: menuContexts,
3334
parentId: menuRoot,
35+
id: 'contextMenu-separator',
3436
type: "separator"
3537
});
3638

0 commit comments

Comments
 (0)