From 76b6fb8f6b1c5425cecc2cbd0fbde4192621f8cb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 19 Dec 2024 23:10:20 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13526 --- app/electron/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/electron/main.js b/app/electron/main.js index 6c6430ba2..7732a6018 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -862,7 +862,7 @@ app.whenReady().then(() => { } break; case "setTrafficLightPosition": - if (!currentWindow) { + if (!currentWindow || !currentWindow.setWindowButtonPosition) { return; } if (new URL(currentWindow.getURL()).pathname === "/stage/build/app/window.html") {