also load stock username text when we get a reconnect page
This commit is contained in:
parent
1eaabb099d
commit
c19b0fe521
@ -688,11 +688,6 @@ var persistence_get = function(key, fallback) {
|
||||
window.onload = function() {
|
||||
write("tab-main").system("Communicating with server...");
|
||||
|
||||
var pre_login = persistence_get("login", "");
|
||||
if (pre_login.indexOf(":") !== -1) {
|
||||
pre_login = pre_login.substr(0, pre_login.indexOf(":")) + ":" + SENTINEL_PASSWORD;
|
||||
}
|
||||
$("#chatbox").value = pre_login;
|
||||
show_joins = persistence_get("show_joins", false);
|
||||
|
||||
document.title = DCWEBUI_CONF.title;
|
||||
@ -756,6 +751,12 @@ window.onload = function() {
|
||||
sock.on('cls', function() {
|
||||
hub_state = 0;
|
||||
|
||||
var pre_login = persistence_get("login", "");
|
||||
if (pre_login.indexOf(":") !== -1) {
|
||||
pre_login = pre_login.substr(0, pre_login.indexOf(":")) + ":" + SENTINEL_PASSWORD;
|
||||
}
|
||||
$("#chatbox").value = pre_login;
|
||||
|
||||
if (!have_cleared_once) {
|
||||
write("tab-main").cls();
|
||||
userlist.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user