浏览代码

Clears external connect data after using it

master
hristoterezov 9 年前
父节点
当前提交
0970fdd7e7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      connection.js

+ 1
- 0
connection.js 查看文件

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

正在加载...
取消
保存