*Add more safety checks on window
This commit is contained in:
parent
22fc7e73e2
commit
b2560e9b25
|
@ -14,7 +14,7 @@ const RPC_MODULE = "AQDaEPIo_lpdvz7AKbeafERBHR331RiyvweJ6OrFTplzyg";
|
||||||
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