mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-01-02 01:03:24 +01:00
correct connection handling to handle when socket is already connected, patch gap in HTTP code handling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user