renderer: Use dispatch() code path even for ipc messages

This commit is contained in:
Feross Aboukhadijeh
2016-03-05 19:52:31 -08:00
parent c01fb66bae
commit c7b49ae45b

View File

@@ -167,11 +167,11 @@ function dispatch (action, ...args) {
}
electron.ipcRenderer.on('addTorrent', function (e, torrentId) {
addTorrent(torrentId)
dispatch('addTorrent', torrentId)
})
electron.ipcRenderer.on('seed', function (e, files) {
seed(files)
dispatch('seed', files)
})
electron.ipcRenderer.on('fullscreenChanged', function (e, isFullScreen) {