Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-07-12 12:08:41 +08:00
commit 6d1baa57e9

View file

@ -180,8 +180,7 @@ const boot = () => {
})
require('@electron/remote/main').enable(mainWindow.webContents)
mainWindow.webContents.userAgent = 'SiYuan/' + appVer +
' https://b3log.org/siyuan ' + mainWindow.webContents.userAgent
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://'))