mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
⬆️ eslint
This commit is contained in:
parent
1087fe8d52
commit
ad10151684
8 changed files with 435 additions and 333 deletions
|
|
@ -320,7 +320,11 @@ const initMainWindow = () => {
|
|||
});
|
||||
remote.enable(currentWindow.webContents);
|
||||
|
||||
resetToCenter ? currentWindow.center() : currentWindow.setPosition(x, y);
|
||||
if (resetToCenter) {
|
||||
currentWindow.center();
|
||||
} else {
|
||||
currentWindow.setPosition(x, y);
|
||||
}
|
||||
currentWindow.webContents.userAgent = "SiYuan/" + appVer + " https://b3log.org/siyuan Electron " + currentWindow.webContents.userAgent;
|
||||
|
||||
// set proxy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue