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

Function getDailyClientPlatform

packages/shared/src/lib/func.ts:55–65  ·  view source on GitHub ↗
(version?: string)

Source from the content-addressed store, hash-verified

53// native wrappers surface themselves through the app version (`ios`/`android`),
54// and everything else is the webapp.
55export const getDailyClientPlatform = (version?: string): string => {
56 if (isExtension) {
57 return 'extension';
58 }
59
60 if (version === 'android' || version === 'ios') {
61 return version;
62 }
63
64 return 'webapp';
65};
66
67export const isPWA = (): boolean =>
68 // @ts-expect-error - Safari only, not web standard.

Callers 4

func.spec.tsFile · 0.90
BootDataProviderFunction · 0.90
useTranslationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected