From 5eff630e4ff7c044163baa30afa43dd9cb113ffc Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 14 Feb 2026 17:28:57 +0800 Subject: [PATCH] :bug: Under certain circumstances, main.js throws an error upon startup https://github.com/siyuan-note/siyuan/issues/17048 Signed-off-by: Daniel <845765@qq.com> --- app/electron/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 62bdd797a..eecd8ebdd 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;