MCPcopy Create free account
hub / github.com/dailydotdev/apps / checkIsExtension

Function checkIsExtension

packages/shared/src/lib/func.ts:46–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44): void => window.opener?.postMessage?.({ ...params, eventKey }, attributes);
45
46export const checkIsExtension = (): boolean => !!process.env.TARGET_BROWSER;
47export const isExtension = !!process.env.TARGET_BROWSER;
48export const isFirefoxExtension = process.env.TARGET_BROWSER === 'firefox';
49export const isChromeExtension = process.env.TARGET_BROWSER === 'chrome';

Callers 15

MainFeedLayoutFunction · 0.90
PlusMarketingModalFunction · 0.90
SearchControlHeaderFunction · 0.90
AuthOptionsInnerFunction · 0.90
ProfileMenuFunction · 0.90
ExtensionSectionFunction · 0.90
FeedExploreHeaderFunction · 0.90
ExploreSectionTabsFunction · 0.90
BriefShortcutButtonFunction · 0.90
PostArticlePreviewEmbedFunction · 0.90
CompanionDemoWidgetFunction · 0.90
getRedirectNextPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected