Use spread operator

This commit is contained in:
Kevin Sawicki 2016-11-03 11:37:18 -07:00
parent e4d6aa30a1
commit 0485069c7b
2 changed files with 3 additions and 3 deletions

View file

@ -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) {