diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 3e2405436..aa9bb9a84 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -30,7 +30,7 @@ export const lockScreen = () => { }; export const kernelError = () => { - if (document.querySelector("#errorLog")){ + if (document.querySelector("#errorLog")) { return; } let iosReStart = ""; @@ -41,7 +41,7 @@ export const kernelError = () => { disableClose: true, title: `💔 ${window.siyuan.languages.kernelFault0} v${Constants.SIYUAN_VERSION}`, width: isMobile() ? "92vw" : "520px", - content: `
+ content: `
${window.siyuan.languages.kernelFault1}
@@ -50,6 +50,7 @@ export const kernelError = () => {
` }); + dialog.element.id = 'errorLog' const restartElement = dialog.element.querySelector(".b3-button"); if (restartElement) { restartElement.addEventListener("click", () => {