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

Function shouldUseNativeShare

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

Source from the content-addressed store, hash-verified

241 globalThis?.localStorage.mobile || globalThis?.navigator.maxTouchPoints > 1;
242
243export const shouldUseNativeShare = (): boolean =>
244 'share' in globalThis?.navigator && isMobile();
245
246export const shouldUseSocialAuthPopup = (): boolean => {
247 if (isIOSNative()) {

Callers 2

useShareCommentFunction · 0.90
onShareOrCopyFunction · 0.90

Calls 1

isMobileFunction · 0.85

Tested by

no test coverage detected