Fix logcat lines issue and added count up display.

This commit is contained in:
adelphes
2017-02-05 23:28:02 +00:00
parent cc02c1b089
commit 101611841f
2 changed files with 14 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ class LogcatContent {
// no point in formatting the data if there are no connected clients
var clients = LogcatContent._wss.clients.filter(client => client._logcatid === this._logcatid);
if (clients.length) {
var lines = '<div class="logblock">' + this._htmllogs.join(os.EOL) + '</div>';
var lines = '<div class="logblock">' + this._htmllogs.join('') + '</div>';
clients.forEach(client => client.send(lines));
}
// once we've updated all the clients, discard the info