🎨 mobile test

This commit is contained in:
Vanessa 2023-06-02 19:45:26 +08:00
parent 640f1c924f
commit 44e090b708
2 changed files with 5 additions and 0 deletions

View file

@ -77,6 +77,10 @@ export class Model {
}
};
ws.onerror = (err: Event & { target: { url: string, readyState: number } }) => {
if (!window.errorStack) {
window.errorStack = []
}
window.errorStack.push(err)
if (err.target.url.endsWith("&type=main") && err.target.readyState === 3) {
kernelError();
}

View file

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