@sanity/client 5.3.0 → 5.3.2

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.
@@ -1134,10 +1134,10 @@ function _listen(query, params) {
1134
1134
  observer.complete();
1135
1135
  }
1136
1136
  function unsubscribe() {
1137
- es.removeEventListener("error", onError, false);
1138
- es.removeEventListener("channelError", onChannelError, false);
1139
- es.removeEventListener("disconnect", onDisconnect, false);
1140
- listenFor.forEach(type => es.removeEventListener(type, onMessage, false));
1137
+ es.removeEventListener("error", onError);
1138
+ es.removeEventListener("channelError", onChannelError);
1139
+ es.removeEventListener("disconnect", onDisconnect);
1140
+ listenFor.forEach(type => es.removeEventListener(type, onMessage));
1141
1141
  es.close();
1142
1142
  }
1143
1143
  function emitReconnect() {
@@ -1149,10 +1149,10 @@ function _listen(query, params) {
1149
1149
  }
1150
1150
  function getEventSource() {
1151
1151
  const evs = new EventSource(uri, esOptions);
1152
- evs.addEventListener("error", onError, false);
1153
- evs.addEventListener("channelError", onChannelError, false);
1154
- evs.addEventListener("disconnect", onDisconnect, false);
1155
- listenFor.forEach(type => evs.addEventListener(type, onMessage, false));
1152
+ evs.addEventListener("error", onError);
1153
+ evs.addEventListener("channelError", onChannelError);
1154
+ evs.addEventListener("disconnect", onDisconnect);
1155
+ listenFor.forEach(type => evs.addEventListener(type, onMessage));
1156
1156
  return evs;
1157
1157
  }
1158
1158
  function open() {