chore: type check JS in docs (#38600)

This commit is contained in:
David Sanders
2023-06-06 16:14:07 +08:00
committed by GitHub
parent bd0e65292f
commit 4845dd7a71
49 changed files with 284 additions and 348 deletions

View File

@@ -196,9 +196,9 @@ const win = new BrowserWindow({
}
})
ipcMain.on('set-ignore-mouse-events', (event, ...args) => {
ipcMain.on('set-ignore-mouse-events', (event, ignore, options) => {
const win = BrowserWindow.fromWebContents(event.sender)
win.setIgnoreMouseEvents(...args)
win.setIgnoreMouseEvents(ignore, options)
})
```