瀏覽代碼

Do not remove the login params after read

master
yanas 9 年之前
父節點
當前提交
1c9903642b
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0
    2
      connection.js

+ 0
- 2
connection.js 查看文件

@@ -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…
取消
儲存