🐛 修复窗体按钮丢失问题

This commit is contained in:
Liang Ding 2022-07-12 12:06:57 +08:00
parent 25be763f8e
commit 1260fa45c7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -180,8 +180,7 @@ const boot = () => {
}) })
require('@electron/remote/main').enable(mainWindow.webContents) require('@electron/remote/main').enable(mainWindow.webContents)
mainWindow.webContents.userAgent = 'SiYuan/' + appVer + mainWindow.webContents.userAgent = 'SiYuan/' + appVer + ' https://b3log.org/siyuan Electron'
' https://b3log.org/siyuan Electron'
mainWindow.webContents.on('did-finish-load', () => { mainWindow.webContents.on('did-finish-load', () => {
if ('win32' === process.platform || 'linux' === process.platform) { if ('win32' === process.platform || 'linux' === process.platform) {
siyuanOpenURL = process.argv.find((arg) => arg.startsWith('siyuan://')) siyuanOpenURL = process.argv.find((arg) => arg.startsWith('siyuan://'))