mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add error event to atom global
This commit is contained in:
@@ -127,6 +127,10 @@ class Atom extends Model
|
||||
# (both spec and application). Call after this instance has been assigned to
|
||||
# the `atom` global.
|
||||
initialize: ->
|
||||
window.onerror = =>
|
||||
@openDevTools()
|
||||
@emit 'error', arguments
|
||||
|
||||
@unsubscribe()
|
||||
@setBodyPlatformClass()
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
window.onerror = ->
|
||||
atom.openDevTools()
|
||||
|
||||
# Public: Measure how long a function takes to run.
|
||||
#
|
||||
# * description:
|
||||
|
||||
Reference in New Issue
Block a user