Major refactor -- split windows into separate files

This commit is contained in:
Feross Aboukhadijeh
2016-05-27 00:01:30 -07:00
parent 3757507b18
commit 001601bc5f
15 changed files with 464 additions and 358 deletions

View File

@@ -10,11 +10,16 @@ module.exports.error = error
var electron = require('electron')
var config = require('../config')
var windows = require('./windows')
var app = electron.app
function log (...args) {
if (!config.IS_PRODUCTION) {
// In development, also log to the console
console.log(...args)
}
if (app.ipcReady) {
windows.main.send('log', ...args)
} else {