Przeglądaj źródła

:art: Update user agent

Daniel 2 lat temu
rodzic
commit
ec0682358f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/electron/main.js

+ 1 - 1
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"]);