Clears external connect data after using it
This commit is contained in:
parent
1ff3efa7d2
commit
0970fdd7e7
|
@ -31,6 +31,7 @@ function checkForAttachParametersAndConnect(id, password, connection) {
|
||||||
var attachOptions = window.XMPPAttachInfo.data;
|
var attachOptions = window.XMPPAttachInfo.data;
|
||||||
if(attachOptions) {
|
if(attachOptions) {
|
||||||
connection.attach(attachOptions);
|
connection.attach(attachOptions);
|
||||||
|
delete window.XMPPAttachInfo.data;
|
||||||
} else {
|
} else {
|
||||||
connection.connect({id, password});
|
connection.connect({id, password});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue