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

Function isBrave

packages/shared/src/lib/constants.ts:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48export const isGBDevMode = process.env.NEXT_PUBLIC_GB_DEV_MODE === 'true';
49
50export const isBrave = (): boolean => {
51 if (typeof window === 'undefined' || !window.Promise) {
52 return false;
53 }
54 return typeof navigator.brave?.isBrave === 'function';
55};
56export const isChrome = (): boolean =>
57 /Chrome/.test(globalThis?.navigator?.userAgent) &&
58 /Google Inc/.test(globalThis?.navigator?.vendor);

Callers 3

getCurrentBrowserNameFunction · 0.90
shouldUseSocialAuthPopupFunction · 0.90
getDefaultLinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected