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

Function checkIsChromeOnly

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

Source from the content-addressed store, hash-verified

171 globalThis?.navigator?.userAgent?.includes(agent);
172
173export const checkIsChromeOnly = (): boolean =>
174 (checkIsBrowser(UserAgent.Chrome) || checkIsBrowser(UserAgent.CriOS)) &&
175 !checkIsBrowser(UserAgent.Edge);
176
177export const getCurrentBrowserName = (): BrowserName => {
178 if (checkIsChromeOnly()) {

Callers 2

OnboardingPWAFunction · 0.90
getCurrentBrowserNameFunction · 0.85

Calls 1

checkIsBrowserFunction · 0.85

Tested by

no test coverage detected