Skip to content

Commit

Permalink
Don't show error if context menu "contexts" isn't specified (#7594)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Feb 10, 2024
1 parent 91721cd commit 7b1d780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background/contextMenus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ async function _ensureContextMenu({
const updateProperties = {
type: "normal",
title,
contexts,
// At least one context type must be specified
// https://github.com/pixiebrix/pixiebrix-extension/issues/7100
contexts: contexts?.length ? contexts : ["all"],
documentUrlPatterns,
} satisfies Menus.UpdateUpdatePropertiesType;

Expand Down

0 comments on commit 7b1d780

Please sign in to comment.