Clears external connect data after using it

This commit is contained in:
hristoterezov 2016-05-02 14:09:57 -05:00
parent 1ff3efa7d2
commit 0970fdd7e7
1 changed files with 1 additions and 0 deletions

View File

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