Restart interval of main window should be longer than specs window.

This commit is contained in:
Cheng Zhao
2013-04-07 23:53:02 +08:00
parent 17e9c6ea3b
commit f4161a1889

View File

@@ -157,7 +157,9 @@ window.reload = ->
timesReloaded = process.global.timesReloaded ? 0
++timesReloaded
if timesReloaded > 3
restartValue = if window.location.search.indexOf('spec-bootstrap') == -1 then 10 else 3
if timesReloaded > restartValue
atom.restartRendererProcess()
else
$native.reload()