mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 17:23:50 +02:00
fix uncaught errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user