mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
c8055dbeee
commit
64b6001947
1 changed files with 2 additions and 0 deletions
|
|
@ -720,6 +720,8 @@ app.whenReady().then(() => {
|
||||||
} else {
|
} else {
|
||||||
win.center();
|
win.center();
|
||||||
}
|
}
|
||||||
|
win.webContents.userAgent = "SiYuan/" + appVer + " https://b3log.org/siyuan Electron " + win.webContents.userAgent;
|
||||||
|
win.webContents.session.setSpellCheckerLanguages(["en-US"]);
|
||||||
win.loadURL(data.url);
|
win.loadURL(data.url);
|
||||||
const targetScreen = screen.getDisplayNearestPoint(screen.getCursorScreenPoint());
|
const targetScreen = screen.getDisplayNearestPoint(screen.getCursorScreenPoint());
|
||||||
if (mainScreen.id !== targetScreen.id) {
|
if (mainScreen.id !== targetScreen.id) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue