correct connection handling to handle when socket is already connected, patch gap in HTTP code handling

This commit is contained in:
AlecM33
2023-08-15 14:21:19 -04:00
parent 4d59d16902
commit 67c89afb81
4 changed files with 20 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ function attemptToJoinGame (event) {
mode: 'cors'
}
).then((res) => {
if (!res.ok) {
if (!res.ok && !(res.status === 304)) {
switch (res.status) {
case 404:
toast('Game not found', 'error', true);