Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:iphone:

Vanessaa5c21e3c09ff
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 3e24054365..aa9bb9a846 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} <small>v${Constants.SIYUAN_VERSION}</small>`,
width: isMobile() ? "92vw" : "520px",
- content: `<div id="errorLog" class="b3-dialog__content">
+ content: `<div class="b3-dialog__content">
<div class="ft__breakword">
<div>${window.siyuan.languages.kernelFault1}</div>
<div class="fn__hr"></div>
@@ -50,6 +50,7 @@ export const kernelError = () => {
</div>
</div>`
});
+ dialog.element.id = 'errorLog'
const restartElement = dialog.element.querySelector(".b3-button");
if (restartElement) {
restartElement.addEventListener("click", () => {