@voicenter-team/events-sdk 0.0.109 → 0.0.110

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.
@@ -2786,10 +2786,10 @@ class nt {
2786
2786
  */
2787
2787
  setupNetworkListeners() {
2788
2788
  const t = () => this.closeAllConnections(), e = () => this.handleNetworkOnline();
2789
- typeof window < "u" && (window.addEventListener("offline", t), window.addEventListener("online", e), this.networkCleanup.push(
2789
+ typeof window < "u" && "addEventListener" in window && typeof window.addEventListener == "function" ? (window.addEventListener("offline", t), window.addEventListener("online", e), this.networkCleanup.push(
2790
2790
  () => window.removeEventListener("offline", t),
2791
2791
  () => window.removeEventListener("online", e)
2792
- )), typeof self < "u" && typeof window > "u" && typeof global > "u" && (self.addEventListener("offline", t), self.addEventListener("online", e), this.networkCleanup.push(
2792
+ )) : typeof self < "u" && "addEventListener" in self && typeof self.addEventListener == "function" && (self.addEventListener("offline", t), self.addEventListener("online", e), this.networkCleanup.push(
2793
2793
  () => self.removeEventListener("offline", t),
2794
2794
  () => self.removeEventListener("online", e)
2795
2795
  ));