Browse Source

Fix createConnection broken in 9781a0d

The places of the two arguments of the function createConnection were
switched in the function definition but the call to the function
remained unchanged.
dev1
Lyubomir Marinov 9 years ago
parent
commit
cda6bea41d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js View File

40
         this.token = token;
40
         this.token = token;
41
         this._initStrophePlugins(this);
41
         this._initStrophePlugins(this);
42
 
42
 
43
-        this.connection = createConnection(options.bosh, token);
43
+        this.connection = createConnection(token, options.bosh);
44
 
44
 
45
         if(!this.connection.disco || !this.connection.caps)
45
         if(!this.connection.disco || !this.connection.caps)
46
             throw new Error(
46
             throw new Error(

Loading…
Cancel
Save