mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Put window.onerror method in the window file.
This commit is contained in:
@@ -12,10 +12,6 @@
|
||||
|
||||
<script src='src/stdlib/require.js'></script>
|
||||
<script>
|
||||
window.onerror = function() {
|
||||
window.showConsole(true)
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
require('startup');
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ _ = require 'underscore'
|
||||
# window:load - Same as window.onLoad. Final event of app startup.
|
||||
windowAdditions =
|
||||
url: $atomController.url?.toString()
|
||||
onerror: -> @showConsole true
|
||||
|
||||
startup: ->
|
||||
if not @resource = atom.router.open @url
|
||||
|
||||
Reference in New Issue
Block a user