try to fix issues with logging in on linux
This commit is contained in:
@@ -232,16 +232,15 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
await connectSocket();
|
||||
currentUsername = currentUsername || await getUsernameFromToken();
|
||||
currentUsername = await getUsernameFromToken();
|
||||
if (!currentUsername) {
|
||||
showJoinError("User not authenticated.");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Home authentication failed:", error);
|
||||
|
||||
connectSocket().catch((error) => {
|
||||
console.error("Home WebSocket connection failed:", error);
|
||||
showJoinError("Real-time poker connection failed.");
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
const balanceRes = await fetch("/balance", {
|
||||
|
||||
Reference in New Issue
Block a user