Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions nodecg-io-core/dashboard/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ inputPassword?.addEventListener("keyup", function (event) {

// Handler for when the socket.io client re-connects which is usually a nodecg restart.
nodecg.socket.on("connect", () => {
// If a password has been entered previously try to directly login using it.
if (inputPassword.value !== "") {
loadFramework();
} else {
updateLoadedStatus();
updateFirstStartupLabel();
}
// Give nodecg 200ms to fully connect so everything is usable.
setTimeout(() => {
// If a password has been entered previously try to directly login using it.
if (inputPassword.value !== "") {
loadFramework();
} else {
updateLoadedStatus();
updateFirstStartupLabel();
}
}, 200);
});

document.addEventListener("DOMContentLoaded", () => {
Expand Down