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

Function isExtensionCapableBrowser

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

Source from the content-addressed store, hash-verified

189// gate on this so users on browsers we don't ship for never get dragged into
190// a flow that can never complete for them. Only Chrome and Edge ship today.
191export const isExtensionCapableBrowser = (): boolean => {
192 const name = getCurrentBrowserName();
193 return name === BrowserName.Chrome || name === BrowserName.Edge;
194};
195
196export const shuffleArray = <T>(array: T[]): T[] => {
197 const newArray = array.slice();

Callers 4

SearchControlHeaderFunction · 0.90
useIframeEmbedFunction · 0.90

Calls 1

getCurrentBrowserNameFunction · 0.85

Tested by

no test coverage detected