Skip to content

Commit 63fed49

Browse files
committed
chore: fix global window declaration
1 parent ee9c340 commit 63fed49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/core/src/shared/userAgent.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ export type UserAgentProvider = () => Promise<string>;
66

77
const UA_LANG = 'lang/js';
88

9+
// Declare window for browser environment detection
10+
declare global {
11+
var window: { navigator?: { userAgent?: string } } | undefined;
12+
}
13+
914
function isBrowser(): boolean {
1015
return globalThis.window !== undefined;
1116
}

0 commit comments

Comments
 (0)