🎨 Update user agent

This commit is contained in:
Daniel 2023-05-29 20:03:37 +08:00
parent 2a8e78b553
commit ec0682358f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -265,7 +265,7 @@ const boot = () => {
});
windowStateInitialized? currentWindow.setPosition(x, y): currentWindow.center();
require("@electron/remote/main").enable(currentWindow.webContents);
currentWindow.webContents.userAgent = "SiYuan/" + appVer + " https://b3log.org/siyuan Electron";
currentWindow.webContents.userAgent = "SiYuan/" + appVer + " https://b3log.org/siyuan Electron " + currentWindow.webContents.userAgent;
currentWindow.webContents.session.setSpellCheckerLanguages(["en-US"]);