Skip to content

Commit

Permalink
Do not remove the login params after read
Browse files Browse the repository at this point in the history
  • Loading branch information
yanas committed Apr 20, 2016
1 parent 3408737 commit 1c99036
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,10 @@ export function openConnection({id, password, retry, roomName}) {

if (!id && predefinedLogin && predefinedLogin.length > 0) {
id = predefinedLogin;
window.localStorage.removeItem("xmpp_login");
}

if (!password && predefinedPassword && predefinedPassword.length > 0) {
password = predefinedPassword;
window.localStorage.removeItem("xmpp_password");
}

return connect(id, password, roomName).catch(function (err) {
Expand Down

0 comments on commit 1c99036

Please sign in to comment.