Use spread syntax instead of function apply

This commit is contained in:
Kevin Sawicki 2016-12-01 14:37:03 -08:00
parent f72942bff1
commit c8ff67ab75
12 changed files with 30 additions and 34 deletions

View file

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