fix(sdk): window is not defined in nuxt (#2479) (#2481)

This commit is contained in:
Sarah Thompson 2023-08-18 15:44:19 +08:00 committed by GitHub
parent 2ea97541c6
commit 98eaf5acb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ export class Auth {
} }
initKeys() { initKeys() {
if (!window) { if (typeof window === 'undefined') {
return; return;
} }
const appName = getSubAppName(); const appName = getSubAppName();