🐛 修复锁屏报错

This commit is contained in:
Liang Ding 2023-01-28 11:52:49 +08:00
parent 9966bd7980
commit 83fec0f7be
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -806,7 +806,7 @@ app.whenReady().then(() => {
ipcMain.on('siyuan-lock-screen', () => {
BrowserWindow.getAllWindows().forEach(item => {
item.browserWindow.webContents.send('siyuan-lock-screen')
item.webContents.send('siyuan-lock-screen')
})
})