Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Update user agent

Danielec0682358f47
diff --git a/app/electron/main.js b/app/electron/main.js
index 621a5f0a80..cf830667d0 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -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"]);