Skip to content

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

:bug: Under certain circumstances, main.js throws an error upon startup https://github.com/siyuan-note/siyuan/issues/17048

Daniel5eff630e4ff7
diff --git a/app/electron/main.js b/app/electron/main.js
index 62bdd797a1..eecd8ebdd6 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -349,8 +349,7 @@ const initMainWindow = () => {
writeLog("window stat [x=" + windowState.x + ", y=" + windowState.y + ", width=" + windowState.width + ", height=" + windowState.height + "], " +
"default [x=0, y=0, width=" + defaultWidth + ", height=" + defaultHeight + "], " +
- "old [x=" + oldWindowState.x + ", y=" + oldWindowState.y + ", width=" + oldWindowState.width + ", height=" + oldWindowState.height + "], " +
- "workArea [width=" + workArea.width + ", height=" + workArea.height + "]");
+ "old [x=" + oldWindowState.x + ", y=" + oldWindowState.y + ", width=" + oldWindowState.width + ", height=" + oldWindowState.height + "]");
let resetToCenter = false;
let x = windowState.x;