浏览代码

connection: Fix typo

This fixes anonymous logins
JC Brand 4 年之前
父节点
当前提交
5162f3f674
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/headless/connection.js

+ 1 - 1
src/headless/connection.js

@@ -314,7 +314,7 @@ export class Connection extends Strophe.Connection {
         if (type.toLowerCase() === 'websocket') {
             return this._proto instanceof Strophe.Websocket;
         } else if (type.toLowerCase() === 'bosh') {
-            return Strophe.BOSH && this._proto instanceof Strophe.Bosh;
+            return Strophe.Bosh && this._proto instanceof Strophe.Bosh;
         }
     }