Selaa lähdekoodia

Do not remove the login params after read

j8
yanas 9 vuotta sitten
vanhempi
commit
1c9903642b
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0
    2
      connection.js

+ 0
- 2
connection.js Näytä tiedosto

@@ -137,12 +137,10 @@ export function openConnection({id, password, retry, roomName}) {
137 137
 
138 138
     if (!id && predefinedLogin && predefinedLogin.length > 0) {
139 139
         id = predefinedLogin;
140
-        window.localStorage.removeItem("xmpp_login");
141 140
     }
142 141
 
143 142
     if (!password && predefinedPassword && predefinedPassword.length > 0) {
144 143
         password = predefinedPassword;
145
-        window.localStorage.removeItem("xmpp_password");
146 144
     }
147 145
 
148 146
     return connect(id, password, roomName).catch(function (err) {

Loading…
Peruuta
Tallenna