From 8a4421f0e00fb19d66e8adcdff112a9f77304f7c Mon Sep 17 00:00:00 2001 From: "A.Olokhtonov" Date: Sun, 26 Mar 2023 02:03:40 +0300 Subject: [PATCH] Clear events on init --- client/recv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/recv.js b/client/recv.js index 43faa7a..b72a925 100644 --- a/client/recv.js +++ b/client/recv.js @@ -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);