mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Update user agent
This commit is contained in:
parent
2a8e78b553
commit
ec0682358f
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue