@voicenter-team/events-sdk 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5276,11 +5276,11 @@ class Vo {
5276
5276
  K(this, "keepReconnectTimeout");
5277
5277
  K(this, "connected", !1);
5278
5278
  K(this, "reconnectionTime", 20);
5279
- this.eventsSdkClass = e, this.eventsSdkClass = e, window !== void 0 && (window.addEventListener("offline", () => {
5279
+ this.eventsSdkClass = e, this.eventsSdkClass = e, typeof window < "u" && (window.addEventListener("offline", () => {
5280
5280
  this.closeAllConnections();
5281
5281
  }), window.addEventListener("online", () => {
5282
5282
  this.keepReconnectTimeout && clearTimeout(this.keepReconnectTimeout), this.eventsSdkClass.connect(lt.NEXT);
5283
- })), self !== void 0 && (self.addEventListener("offline", () => {
5283
+ })), typeof self < "u" && typeof window > "u" && (self.addEventListener("offline", () => {
5284
5284
  this.closeAllConnections();
5285
5285
  }), self.addEventListener("online", () => {
5286
5286
  this.keepReconnectTimeout && clearTimeout(this.keepReconnectTimeout), this.eventsSdkClass.connect(lt.NEXT);