Browse Source

Do not remove the login params after read

master
yanas 9 years ago
parent
commit
1c9903642b
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      connection.js

+ 0
- 2
connection.js View File

@@ -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…
Cancel
Save