Explorar o código

connection: Fix typo

This fixes anonymous logins
JC Brand %!s(int64=4) %!d(string=hai) anos
pai
achega
5162f3f674
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }
     }