fix username auth crash

This commit is contained in:
biglyderv 2024-10-25 00:41:26 -04:00
parent 44be844ae9
commit de94ee968b

View file

@ -209,7 +209,14 @@ class Game extends GameBasic {
"body": f
}
);
j = await j.json();
j = await j.text();
try {
j = JSON.parse(j);
} catch (err) {
j = {};
}
if (j.username == '!nobody' || !j.username) return;