*Add more safety checks on window
This commit is contained in:
parent
648951208c
commit
200221e742
|
@ -15,7 +15,7 @@ const DHT_MODULE = "AQD1IgE4lTZkq1fqdoYGojKRNrSk0YQ_wrHbRtIiHDrnow";
|
||||||
let callModule: typeof callModuleModule,
|
let callModule: typeof callModuleModule,
|
||||||
connectModule: typeof connectModuleModule;
|
connectModule: typeof connectModuleModule;
|
||||||
|
|
||||||
if (window.document) {
|
if (typeof window !== "undefined" && window?.document) {
|
||||||
callModule = callModuleKernel;
|
callModule = callModuleKernel;
|
||||||
connectModule = connectModuleKernel;
|
connectModule = connectModuleKernel;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue