From 7969f8bc53f72fd22377a5b393131a0ed84ed0f7 Mon Sep 17 00:00:00 2001 From: matthewmeeks Date: Thu, 30 Nov 2023 13:55:24 -0500 Subject: [PATCH] fix blinking --- blob/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blob/script.js b/blob/script.js index c5921bc..dbaa5d7 100644 --- a/blob/script.js +++ b/blob/script.js @@ -97,8 +97,8 @@ function spawnCharacter(id, state) { const charElem = elemFrag.querySelector(".character"); charElem.id = `char-${id}`; viewportElem.appendChild(elemFrag); - blinkLoop(id); states[id] = structuredClone(state); + blinkLoop(id); changeAppearance(id, state); charElem.style.setProperty("--rotation", `${state.rot}deg`); }