⬆️ eslint

This commit is contained in:
Vanessa 2024-11-19 16:48:28 +08:00
parent 1087fe8d52
commit ad10151684
8 changed files with 435 additions and 333 deletions

View file

@ -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