Parcourir la source

Clears external connect data after using it

master
hristoterezov il y a 9 ans
Parent
révision
0970fdd7e7
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1
    0
      connection.js

+ 1
- 0
connection.js Voir le fichier

@@ -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
         }

Chargement…
Annuler
Enregistrer