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

Function isPWA

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

Source from the content-addressed store, hash-verified

65};
66
67export const isPWA = (): boolean =>
68 // @ts-expect-error - Safari only, not web standard.
69 globalThis?.navigator?.standalone ||
70 globalThis?.matchMedia('(display-mode: standalone)')?.matches;
71
72export const defaultSearchDebounceMs = 500;
73

Callers 5

ErrorPageFunction · 0.90
CallbackPageFunction · 0.90
closeWindowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected