mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🚨
This commit is contained in:
parent
69139f530d
commit
990b31dc00
4 changed files with 21 additions and 16 deletions
|
|
@ -760,9 +760,9 @@ app.whenReady().then(() => {
|
|||
},
|
||||
});
|
||||
win.loadURL(data.url);
|
||||
const targetScreen = screen.getDisplayNearestPoint(screen.getCursorScreenPoint())
|
||||
const targetScreen = screen.getDisplayNearestPoint(screen.getCursorScreenPoint());
|
||||
if (mainScreen.id !== targetScreen.id) {
|
||||
win.setBounds(targetScreen.workArea)
|
||||
win.setBounds(targetScreen.workArea);
|
||||
}
|
||||
require("@electron/remote/main").enable(win.webContents);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue