Skip to content

Commit 887e48a

Browse files
committed
console: only flush once, not with every message
1 parent e8a80c6 commit 887e48a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/themes/pterodactyl/js/frontend/console.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ var Console = (function () {
212212

213213
if (terminalQueue.length > 0) {
214214
for (var i = 0; i < CONSOLE_PUSH_COUNT && terminalQueue.length > 0; i++) {
215-
terminal.echo(terminalQueue[0]);
215+
terminal.echo(terminalQueue[0], {flush: false});
216216
terminalQueue.shift();
217217
}
218+
terminal.flush()
218219

219220
// Show
220221
if (!terminal.is_bottom()) {

0 commit comments

Comments
 (0)