mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 mobile test
This commit is contained in:
parent
640f1c924f
commit
44e090b708
2 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue