*Add more safety checks on window

This commit is contained in:
Derrick Hammer 2022-07-20 17:22:10 -04:00
parent 22fc7e73e2
commit b2560e9b25
1 changed files with 1 additions and 1 deletions

View File

@ -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 {