fix uncaught errors

This commit is contained in:
pa
2025-07-14 21:52:48 +09:00
committed by Natsumi
parent b5b962b198
commit 6fb2ad158e
4 changed files with 39 additions and 24 deletions

View File

@@ -94,8 +94,9 @@ function connectWebSocket(token) {
return;
}
lastWebSocketMessage = data;
const json = JSON.parse(data);
let json;
try {
json = JSON.parse(data);
json.content = JSON.parse(json.content);
} catch {
// ignore parse error