fix: need typeof
This commit is contained in:
parent
43c9790206
commit
2d7d057b05
|
@ -12,7 +12,7 @@ import {
|
||||||
} from "#module/index.js";
|
} from "#module/index.js";
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const kernelEnv = window !== "undefined" && window?.document;
|
const kernelEnv = typeof window !== "undefined" && window?.document;
|
||||||
|
|
||||||
export const callModule = kernelEnv ? callModuleKernel : callModuleModule;
|
export const callModule = kernelEnv ? callModuleKernel : callModuleModule;
|
||||||
export const connectModule = kernelEnv
|
export const connectModule = kernelEnv
|
||||||
|
|
Loading…
Reference in New Issue