Skip to content

Commit 6c6a49e

Browse files
authored
only push stuff from the terminal outputQueue if there is something inside
this allows to scroll on the console again
1 parent ee851c9 commit 6c6a49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/server/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function pushOutputQueue()
326326
$('#consoleThrottled').addClass('hidden');
327327
}
328328
329-
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }}; i++)
329+
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }} && outputQueue.length > 0; i++)
330330
{
331331
terminal.echo(outputQueue[0]);
332332
outputQueue.shift();

0 commit comments

Comments
 (0)