fix: need typeof

This commit is contained in:
Derrick Hammer 2023-06-29 02:40:48 -04:00
parent 43c9790206
commit 2d7d057b05
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import {
} from "#module/index.js";
// @ts-ignore
const kernelEnv = window !== "undefined" && window?.document;
const kernelEnv = typeof window !== "undefined" && window?.document;
export const callModule = kernelEnv ? callModuleKernel : callModuleModule;
export const connectModule = kernelEnv