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:
parent
ee851c9f34
commit
6c6a49e709
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue