Should always show devtools instead of toggling when getting error.

This commit is contained in:
Cheng Zhao
2013-05-17 23:07:34 +08:00
parent 26c89f71b2
commit 6260d350ac
2 changed files with 5 additions and 1 deletions

View File

@@ -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()

View File

@@ -235,7 +235,7 @@ window.reload = ->
$native.reload()
window.onerror = ->
atom.toggleDevTools()
atom.openDevTools()
window.registerDeserializers = (args...) ->
registerDeserializer(arg) for arg in args