Merge pull request #18 from Maathias/misc

fix: logging
This commit was merged in pull request #18.
This commit is contained in:
Mateusz Pstrucha authored and GitHub committed 2021-11-03 23:49:44 +01:00
commit 7b98f02f0e
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -87,8 +87,6 @@ function Info({ top }) {
setModalReport(false)
}
console.log(track.stats)
const total = track.stats.total,
percent = total > 0 ? (track.stats.up / total) * 100 : 50
+2 -2
View File
@@ -23,10 +23,10 @@ function open() {
socket.onmessage = (e) => {
let data = JSON.parse(e.data)
console.debug(data)
if (!Array.isArray(data)) data = [data]
console.debug(data.map(({ cat }) => cat).join(' '), data)
for (let chunk of data) {
let category = events[chunk.cat]
if (category)