Skip to content

Commit f19dcc4

Browse files
committed
fix: use globalThis instead of window object
1 parent 94234db commit f19dcc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/browser-extension-wallet/src/hooks/useAppInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const useAppInit = (): void => {
4242
backgroundServices
4343
.getBackgroundStorage()
4444
.then((bs) => {
45-
initI18n(bs.languageChoice ?? window.navigator.language);
45+
initI18n(bs.languageChoice ?? globalThis.navigator.language ?? 'en');
4646
})
4747
.catch((error) => {
4848
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)