Browse Source

Clear events on init

master
A.Olokhtonov 2 years ago
parent
commit
8a4421f0e0
  1. 2
      client/recv.js

2
client/recv.js

@ -235,7 +235,7 @@ async function handle_message(d) { @@ -235,7 +235,7 @@ async function handle_message(d) {
storage.ctx0.clearRect(0, 0, storage.ctx0.canvas.width, storage.ctx0.canvas.height);
elements.images.innerHTML = '';
storage.events.length = 0;
for (let i = 0; i < event_count; ++i) {
const event = des_event(d);

Loading…
Cancel
Save