🎨 mobile

This commit is contained in:
Vanessa 2023-06-03 09:22:05 +08:00
parent 9c7a3fdd72
commit 82477c6a58

View file

@ -61,6 +61,7 @@ export class Model {
}
};
ws.onclose = (ev) => {
console.error("ws.onclose", ev)
if (0 <= ev.reason.indexOf("unauthenticated")) {
return;
}
@ -77,6 +78,7 @@ export class Model {
}
};
ws.onerror = (err: Event & { target: { url: string, readyState: number } }) => {
console.error("ws.onerror", err)
if (err.target.url.endsWith("&type=main") && err.target.readyState === 3) {
kernelError();
}