From 1260fa45c7e0e04a577c4e69657bff4ba84440d6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 12 Jul 2022 12:06:57 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E7=AA=97=E4=BD=93?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 23ee21f9d..ed71d53d9 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -180,8 +180,7 @@ const boot = () => { }) require('@electron/remote/main').enable(mainWindow.webContents) - mainWindow.webContents.userAgent = 'SiYuan/' + appVer + - ' https://b3log.org/siyuan Electron' + mainWindow.webContents.userAgent = 'SiYuan/' + appVer + ' https://b3log.org/siyuan Electron' mainWindow.webContents.on('did-finish-load', () => { if ('win32' === process.platform || 'linux' === process.platform) { siyuanOpenURL = process.argv.find((arg) => arg.startsWith('siyuan://'))