Do not remove the login params after read
This commit is contained in:
parent
3408737693
commit
1c9903642b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue