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

Function isMobile

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

Source from the content-addressed store, hash-verified

264};
265
266export const isMobile = (): boolean =>
267 globalThis?.localStorage.mobile || globalThis?.navigator.maxTouchPoints > 1;
268
269export const shouldUseNativeShare = (): boolean =>
270 'share' in globalThis?.navigator && isMobile();

Callers 3

getPreviewPlatformFunction · 0.90
shouldUseNativeShareFunction · 0.85
shouldUseSocialAuthPopupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected