Skip to content

Commit

Permalink
fix: Ensure error message is displayed when connection fails
Browse files Browse the repository at this point in the history
- Added logic to remove the "hidden" class from the room list container when a connection error occurs.
- This change ensures that the error message is correctly displayed when there is a connection failure.

This fix improves the user experience by providing clear feedback when a connection error occurs.
  • Loading branch information
TKanX committed Nov 11, 2024
1 parent 60c2611 commit e1390db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/pages/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
${error.message}
</div>
`;
document.getElementById("room-list-container").classList.remove("hidden");
return;
}
Expand Down

0 comments on commit e1390db

Please sign in to comment.