mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Restart interval of main window should be longer than specs window.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user