*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,
|
||||
connectModule: typeof connectModuleModule;
|
||||
|
||||
if (window.document) {
|
||||
if (typeof window !== "undefined" && window?.document) {
|
||||
callModule = callModuleKernel;
|
||||
connectModule = connectModuleKernel;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue