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

Function checkIsChromeOnly

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

Source from the content-addressed store, hash-verified

183 globalThis?.navigator?.userAgent?.includes(agent);
184
185export const checkIsChromeOnly = (): boolean =>
186 (checkIsBrowser(UserAgent.Chrome) || checkIsBrowser(UserAgent.CriOS)) &&
187 !checkIsBrowser(UserAgent.Edge);
188
189export const getCurrentBrowserName = (): BrowserName => {
190 if (checkIsChromeOnly()) {

Callers 2

OnboardingPWAFunction · 0.90
getCurrentBrowserNameFunction · 0.85

Calls 1

checkIsBrowserFunction · 0.85

Tested by

no test coverage detected