From 4a76a916c922645094654aa985b85d9a71d01a62 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 7 Jun 2023 22:04:40 -0700 Subject: [PATCH] Unwrap when settled Reduces DOM node clutter --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 86be298..4373c71 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ function tick() { if (ticksRemaining === 0) { - charElem.textContent = finalChar; + charElem.replaceWith(finalChar); return; } charElem.textContent = cycle[cycleIndex]; -- 2.47.3