Hats webpage: Fix incorrect check for static hat
authorWuzzy <Wuzzy2@mail.ru>
Sat, 16 May 2020 04:28:26 +0200
changeset 15589 f22ebcd9f3fc
parent 15588 909ef1f3ef19
child 15590 de1b31c2d2f2
Hats webpage: Fix incorrect check for static hat
misc/hats_js_anim.xhtml
--- a/misc/hats_js_anim.xhtml	Sat May 16 03:41:49 2020 +0200
+++ b/misc/hats_js_anim.xhtml	Sat May 16 04:28:26 2020 +0200
@@ -307,7 +307,7 @@
     var a = document.getElementsByTagName("a");
     for (var i=0;i<a.length;i++)
     {
-        if (a.className === "hat")
+        if (a[i].className !== "hat")
             continue;
         // Cycle through hedgehog and hat animation frames