diff --git a/CHANGELOG.md b/CHANGELOG.md index e44b65b9b..1affb69c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,8 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * Attempting to create a server when no nodes are configured now redirects to the node creation page. * Fixes missing library issue for teamspeak when used with mariadb. * Fixes inability to change the default port on front-end when viewing a server. -* Fixes bug preventing deletion of nests that have other nests referencing them as children. +* Fixes bug preventing deletion of nests that have other nests referencing them as children. +* Fixes console sometimes not loading properly on slow connections ### Removed * SFTP settings page now only displays connection address and username. Password setting was removed as it is no longer necessary with Daemon changes. diff --git a/public/themes/pterodactyl/js/frontend/console.js b/public/themes/pterodactyl/js/frontend/console.js index d1bc53c81..d96aaefd4 100644 --- a/public/themes/pterodactyl/js/frontend/console.js +++ b/public/themes/pterodactyl/js/frontend/console.js @@ -203,9 +203,11 @@ function pushToTerminal(string) { }); Socket.on('console', function (data) { - data.line.split(/\n/g).forEach(function (item) { - TerminalQueue.push(item); - }); + if(data.line) { + data.line.split(/\n/g).forEach(function (item) { + TerminalQueue.push(item); + }); + } }); })();