only push stuff from the terminal outputQueue if there is something inside

this allows to scroll on the console again
This commit is contained in:
Jakob 2016-11-01 23:22:07 +01:00 committed by GitHub
parent ee851c9f34
commit 6c6a49e709

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