This commit is contained in:
Vanessa 2024-04-28 11:38:52 +08:00
parent 544df28920
commit 0f294973ca
2 changed files with 28 additions and 1 deletions

View file

@ -64,7 +64,7 @@ try {
app.exit();
}
const windowNavigate = (currentWindow) => {
const windowNavigate = (currentWindow) => {
currentWindow.webContents.on("will-navigate", (event) => {
const url = event.url;
if (url.startsWith(localServer)) {
@ -897,6 +897,9 @@ app.whenReady().then(() => {
}
currentWindow.destroy();
break;
case "writeLog":
writeLog(data.msg);
break;
case "closeButtonBehavior":
if (!currentWindow) {
return;