mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
544df28920
commit
0f294973ca
2 changed files with 28 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue