fix username auth crash

This commit is contained in:
biglyderv 2024-11-25 14:14:21 -05:00
parent cfc282e496
commit 85ebae37da

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;