mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
web console is where it's at
(this also fixes the reported source of a console.log in the web inspector)
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
# This file is the first thing loaded on startup.
|
||||
|
||||
console.originalLog = console.log
|
||||
console.log = (thing) ->
|
||||
OSX.NSLog thing.toString() if thing?
|
||||
console.originalLog thing
|
||||
|
||||
|
||||
# load require() function
|
||||
root = OSX.NSBundle.mainBundle.resourcePath
|
||||
code = OSX.NSString.stringWithContentsOfFile path = "#{root}/src/require.js"
|
||||
|
||||
Reference in New Issue
Block a user