Fix console not loading sometimes (#710)

This commit is contained in:
Adam Blunt 2017-10-31 23:17:08 +00:00 committed by Dane Everitt
parent b5ff41e74c
commit 65a36d35b7
2 changed files with 7 additions and 4 deletions

View file

@ -37,6 +37,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* 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 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.

View file

@ -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);
});
}
});
})();