Skip to content

Commit

Permalink
Clears external connect data after using it
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed May 2, 2016
1 parent 1ff3efa commit 0970fdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit 0970fdd

Please sign in to comment.