Skip to content

Commit

Permalink
feat: improve feedback on connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex-82 committed Aug 19, 2024
1 parent 84febef commit cc2c04d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ function openConnection() {

socket.addEventListener("error", (err) => {
console.log(err);
connectionButton.setAttribute("aria-busy", "false");
connectionButton.textContent = "error";
connectionButton.classList.add("secondary");
connectionButton.setAttribute("disabled", "");
});
}
}
Expand Down

0 comments on commit cc2c04d

Please sign in to comment.