mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
🎨 mobile
This commit is contained in:
parent
e782774acf
commit
9c7a3fdd72
2 changed files with 0 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue