瀏覽代碼

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 年之前
父節點
當前提交
b8f68b98be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/xmpp/XmppConnection.js

+ 1
- 1
modules/xmpp/XmppConnection.js 查看文件

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

Loading…
取消
儲存