From 2c4182663238c6118d3248fee650245b5c3874c9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 20 Jul 2022 17:24:00 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index a70be00..f5c9ed9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3,7 +3,7 @@ import { callModule as callModuleModule, connectModule as connectModuleModule, } import { EventEmitter } from "events"; const DHT_MODULE = "AQD1IgE4lTZkq1fqdoYGojKRNrSk0YQ_wrHbRtIiHDrnow"; let callModule, connectModule; -if (window.document) { +if (typeof window !== "undefined" && window?.document) { callModule = callModuleKernel; connectModule = connectModuleKernel; }