🎨 mobile

This commit is contained in:
Vanessa 2023-06-03 01:03:33 +08:00
parent e782774acf
commit 9c7a3fdd72
2 changed files with 0 additions and 11 deletions

View file

@ -61,11 +61,6 @@ export class Model {
}
};
ws.onclose = (ev) => {
if (!window.errorStack) {
window.errorStack = []
}
window.errorStack.push({onclose: ev})
console.log(window.errorStack)
if (0 <= ev.reason.indexOf("unauthenticated")) {
return;
}
@ -82,11 +77,6 @@ export class Model {
}
};
ws.onerror = (err: Event & { target: { url: string, readyState: number } }) => {
if (!window.errorStack) {
window.errorStack = []
}
window.errorStack.push({"onerror": err})
console.log(window.errorStack)
if (err.target.url.endsWith("&type=main") && err.target.readyState === 3) {
kernelError();
}

View file

@ -28,7 +28,6 @@ type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-
declare module "blueimp-md5"
interface Window {
errorStack: any
dataLayer: any[]
siyuan: ISiyuan
webkit: any