mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 04:18:48 +01:00
🚨
This commit is contained in:
parent
a8127fce8d
commit
32af26c519
6 changed files with 20 additions and 21 deletions
|
|
@ -61,10 +61,10 @@ const exitApp = (port, errorWindowId) => {
|
|||
if (port.toString() === currentURL.port.toString()) {
|
||||
const hasMain = workspaces.find((workspaceItem) => {
|
||||
if (workspaceItem.browserWindow.id === item.id) {
|
||||
mainWindow = item
|
||||
mainWindow = item;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
if (!hasMain) {
|
||||
item.destroy();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue