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

Function checkIsChromeOnly

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

Source from the content-addressed store, hash-verified

157 globalThis?.navigator?.userAgent?.includes(agent);
158
159export const checkIsChromeOnly = (): boolean =>
160 (checkIsBrowser(UserAgent.Chrome) || checkIsBrowser(UserAgent.CriOS)) &&
161 !checkIsBrowser(UserAgent.Edge);
162
163export const getCurrentBrowserName = (): BrowserName => {
164 if (checkIsChromeOnly()) {

Callers 2

OnboardingPWAFunction · 0.90
getCurrentBrowserNameFunction · 0.85

Calls 1

checkIsBrowserFunction · 0.85

Tested by

no test coverage detected