Vanessa 2024-12-19 23:10:20 +08:00
parent 1882ac83ef
commit 76b6fb8f6b

View file

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