diff --git a/client/recv.js b/client/recv.js index afd1284..236bec1 100644 --- a/client/recv.js +++ b/client/recv.js @@ -210,7 +210,9 @@ async function handle_message(d) { const event_count = des_u32(d); console.debug(`${event_count} events in init`); + storage.ctx0.clearRect(0, 0, storage.ctx0.canvas.width, storage.ctx0.canvas.height); + elements.images.innerHTML = ''; for (let i = 0; i < event_count; ++i) {