Merge pull request #161 from schrej/patch-1

only push stuff from the terminal outputQueue if there is something i…
This commit is contained in:
Dane Everitt 2016-11-02 00:15:11 -04:00 committed by GitHub
commit b586feab2d

View file

@ -326,7 +326,7 @@ $(window).load(function () {
$('#consoleThrottled').addClass('hidden');
}
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }}; i++)
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }} && outputQueue.length > 0; i++)
{
terminal.echo(outputQueue[0]);
outputQueue.shift();