added reconnecting message

This commit is contained in:
Kenneth Jao 2017-05-05 02:12:45 -04:00
parent 3823592db1
commit 6d8724b5d7

View File

@ -61,6 +61,13 @@ Meteor.autorun(function () { // Disconnect checking
timeout: 1500
});
});
} else if(Meteor.status().status === "connecting" && document.getElementById("disconnect") !== null) {
if(document.getElementById("disconnectLoad") !== null) return;
var h1 = document.createElement("h4");
h1.appendChild(document.createTextNode("Reconnecting..."));
h1.id = "disconnectLoad";
document.getElementById("disconnect").appendChild(h1);
$("#disconnectLoad").velocity("fadeIn", 150);
}
});