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") {