Use spread syntax instead of function apply
This commit is contained in:
parent
f72942bff1
commit
c8ff67ab75
12 changed files with 30 additions and 34 deletions
|
@ -14,7 +14,7 @@ const geval = eval
|
|||
require('../renderer/api/ipc-renderer-setup')(ipcRenderer, binding)
|
||||
|
||||
binding.onMessage = function (channel, args) {
|
||||
ipcRenderer.emit.apply(ipcRenderer, [channel].concat(args))
|
||||
ipcRenderer.emit(channel, ...args)
|
||||
}
|
||||
|
||||
binding.onExit = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue