Skip to content

Commit

Permalink
Add support for options_page key
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 8, 2024
1 parent bc51a07 commit 61a13a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const isPersistentBackgroundPage = once((): boolean =>
);

/** Indicates whether you're in an options page. This only works if the current page’s URL matches the one specified in the extension's `manifest.json` */
export const isOptionsPage = once((): boolean => isCurrentPathname(getManifest()?.options_ui?.page));
export const isOptionsPage = once((): boolean => isCurrentPathname(getManifest()?.options_ui?.page ?? getManifest()?.options_page));

/** Indicates whether you're in a side panel. This only works if the current page’s URL matches the one specified in the extension's `manifest.json` */
export const isSidePanel = once((): boolean =>
Expand Down

0 comments on commit 61a13a7

Please sign in to comment.