We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5105fa4 commit 270dc40Copy full SHA for 270dc40
packages/web/src/db/sync/userAgent.ts
@@ -18,7 +18,8 @@ export function getUserAgentInfo(nav?: NavigatorInfo): string[] {
18
19
const browser = getBrowserInfo(nav);
20
const os = getOsInfo(nav);
21
- return [browser, os].filter((v) => v != null);
+ // The cast below is to cater for TypeScript < 5.5.0
22
+ return [browser, os].filter((v) => v != null) as string[];
23
}
24
25
function getBrowserInfo(nav: NavigatorInfo): string | null {
0 commit comments