aboutsummaryrefslogtreecommitdiff
path: root/static/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/src/main.ts')
-rw-r--r--static/src/main.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/static/src/main.ts b/static/src/main.ts
index 16de636..c3588de 100644
--- a/static/src/main.ts
+++ b/static/src/main.ts
@@ -65,9 +65,11 @@ class KennelClient {
break;
}
}
-
- console.log(events, dt);
+ if (events.length > 0) {
+ console.log(events, dt);
+ }
this.event_queue.clear();
+ this.event_publisher.publish();
}
private process_set_controllable_event(event: SetControllableEvent) {