Browse Source

Clears external connect data after using it

master
hristoterezov 9 years ago
parent
commit
0970fdd7e7
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      connection.js

+ 1
- 0
connection.js View File

31
         var attachOptions = window.XMPPAttachInfo.data;
31
         var attachOptions = window.XMPPAttachInfo.data;
32
         if(attachOptions) {
32
         if(attachOptions) {
33
             connection.attach(attachOptions);
33
             connection.attach(attachOptions);
34
+            delete window.XMPPAttachInfo.data;
34
         } else {
35
         } else {
35
             connection.connect({id, password});
36
             connection.connect({id, password});
36
         }
37
         }

Loading…
Cancel
Save