mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
🎨 mobile
This commit is contained in:
parent
9c7a3fdd72
commit
82477c6a58
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue