misc/hats_js_anim.xhtml
changeset 15567 f22ebcd9f3fc
parent 15566 909ef1f3ef19
child 15568 de1b31c2d2f2
--- 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