(version?: string)
| 53 | // native wrappers surface themselves through the app version (`ios`/`android`), |
| 54 | // and everything else is the webapp. |
| 55 | export 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 | |
| 67 | export const isPWA = (): boolean => |
| 68 | // @ts-expect-error - Safari only, not web standard. |
no outgoing calls
no test coverage detected