Pārlūkot izejas kodu

fix(XmppConnection): sendUnavailableBeacon

Copy/paste mistake - there's no such thing as this.connection in
the XmppConnection. Hard to track down because no error is logged.
dev1
paweldomas 5 gadus atpakaļ
vecāks
revīzija
b8f68b98be
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      modules/xmpp/XmppConnection.js

+ 1
- 1
modules/xmpp/XmppConnection.js Parādīt failu

@@ -399,7 +399,7 @@ export default class XmppConnection extends Listenable {
399 399
      * @returns {boolean} - true if the beacon was sent.
400 400
      */
401 401
     sendUnavailableBeacon() {
402
-        if (!navigator.sendBeacon || this.connection.disconnecting || !this.connection.connected) {
402
+        if (!navigator.sendBeacon || this._stropheConn.disconnecting || !this._stropheConn.connected) {
403 403
             return false;
404 404
         }
405 405
 

Notiek ielāde…
Atcelt
Saglabāt