diff --git a/src/browser/main.coffee b/src/browser/main.coffee index cd3483dd0..5cff80f4f 100644 --- a/src/browser/main.coffee +++ b/src/browser/main.coffee @@ -9,12 +9,7 @@ optimist = require 'optimist' nslog = require 'nslog' dialog = require 'dialog' -console.log = (args...) -> - # TODO: Make NSLog work as expected - output = args.map((arg) -> JSON.stringify(arg)).join(" ") - nslog(output) - if process.platform isnt 'darwin' - fs.writeFileSync('debug.log', output, flag: 'a') +console.log = nslog process.on 'uncaughtException', (error={}) -> nslog(error.message) if error.message?