From 6c6a49e709a4037aa93756415bd9bf02536c1c45 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 1 Nov 2016 23:22:07 +0100 Subject: [PATCH] only push stuff from the terminal outputQueue if there is something inside this allows to scroll on the console again --- resources/views/server/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/server/index.blade.php b/resources/views/server/index.blade.php index 38b6206ba..5cfec8a2c 100644 --- a/resources/views/server/index.blade.php +++ b/resources/views/server/index.blade.php @@ -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();