fix: navigator not defined in test environment

This commit is contained in:
Nicolas Varrot
2026-02-13 15:51:07 +00:00
parent ea8e5e3dab
commit 153d165457

View File

@@ -111,7 +111,7 @@ export class GatewayClient {
commands: [],
permissions: {},
auth: { token: this.authToken },
locale: navigator.language || 'en',
locale: (typeof navigator !== 'undefined' ? navigator.language : undefined) || 'en',
userAgent: `pinchchat/${__APP_VERSION__}`,
}).then((res) => {
log('connected!', res);