add log.js module for renderer logging

This commit is contained in:
Feross Aboukhadijeh
2016-03-21 01:57:12 -07:00
parent e7e7afab3b
commit f0df9011df
6 changed files with 48 additions and 12 deletions

View File

@@ -283,6 +283,7 @@ function setupIpc () {
ipcRenderer.send('ipcReady')
ipcRenderer.on('log', (e, ...args) => console.log(...args))
ipcRenderer.on('error', (e, ...args) => console.error(...args))
ipcRenderer.on('dispatch', (e, ...args) => dispatch(...args))