mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Should always show devtools instead of toggling when getting error.
This commit is contained in:
@@ -207,6 +207,10 @@ window.atom =
|
||||
else
|
||||
@pendingModals[stackSize - 1].shift()
|
||||
|
||||
openDevTools: ->
|
||||
currentWindow = require('remote').getCurrentWindow()
|
||||
currentWindow.openDevTools()
|
||||
|
||||
toggleDevTools: ->
|
||||
currentWindow = require('remote').getCurrentWindow()
|
||||
currentWindow.toggleDevTools()
|
||||
|
||||
@@ -235,7 +235,7 @@ window.reload = ->
|
||||
$native.reload()
|
||||
|
||||
window.onerror = ->
|
||||
atom.toggleDevTools()
|
||||
atom.openDevTools()
|
||||
|
||||
window.registerDeserializers = (args...) ->
|
||||
registerDeserializer(arg) for arg in args
|
||||
|
||||
Reference in New Issue
Block a user