Fix "rendering..." getting stuck on first connection
This commit is contained in:
parent
5bac385a75
commit
7ce1f1cf9e
@ -30,11 +30,11 @@ socket.on("init", function(data) {
|
||||
render.renderNetworks(data);
|
||||
}
|
||||
|
||||
if (lastMessageId > -1) {
|
||||
$("#connection-error").removeClass("shown");
|
||||
$(".show-more-button, #input").prop("disabled", false);
|
||||
$("#submit").show();
|
||||
} else {
|
||||
$("#connection-error").removeClass("shown");
|
||||
$(".show-more-button, #input").prop("disabled", false);
|
||||
$("#submit").show();
|
||||
|
||||
if (lastMessageId < 0) {
|
||||
if (data.token) {
|
||||
storage.set("token", data.token);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user