remove console.log
This commit is contained in:
@@ -9,17 +9,11 @@ module.exports.error = error
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var electron = require('electron')
|
var electron = require('electron')
|
||||||
|
|
||||||
var config = require('../config')
|
|
||||||
var windows = require('./windows')
|
var windows = require('./windows')
|
||||||
|
|
||||||
var app = electron.app
|
var app = electron.app
|
||||||
|
|
||||||
function log (...args) {
|
function log (...args) {
|
||||||
if (!config.IS_PRODUCTION) {
|
|
||||||
// In development, also log to the console
|
|
||||||
console.log(...args)
|
|
||||||
}
|
|
||||||
if (app.ipcReady) {
|
if (app.ipcReady) {
|
||||||
windows.main.send('log', ...args)
|
windows.main.send('log', ...args)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user