Use spread operator
This commit is contained in:
parent
e4d6aa30a1
commit
0485069c7b
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ module.exports = {
|
|||
})
|
||||
|
||||
ipcRenderer.on(`ELECTRON_GUEST_VIEW_INTERNAL_DISPATCH_EVENT-${viewInstanceId}`, function (event, eventName, ...args) {
|
||||
dispatchEvent.apply(null, [webView, eventName, eventName].concat(args))
|
||||
dispatchEvent(webView, eventName, eventName, ...args)
|
||||
})
|
||||
|
||||
ipcRenderer.on(`ELECTRON_GUEST_VIEW_INTERNAL_IPC_MESSAGE-${viewInstanceId}`, function (event, channel, ...args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue