mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
This commit is contained in:
parent
bec5fbc9cb
commit
bb36ff79b5
12 changed files with 62 additions and 15 deletions
|
|
@ -63,8 +63,7 @@ export class Model {
|
|||
}
|
||||
};
|
||||
ws.onerror = (err: Event & { target: { url: string, readyState: number } }) => {
|
||||
const logElement = document.getElementById("errorLog");
|
||||
if (err.target.url.endsWith("&type=main") && err.target.readyState === 3 && !logElement) {
|
||||
if (err.target.url.endsWith("&type=main") && err.target.readyState === 3) {
|
||||
kernelError();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue