]> git.r.bdr.sh - rbdr/r.bdr.sh/commitdiff
More parens
authorRuben Beltran del Rio <redacted>
Mon, 9 Sep 2024 20:08:11 +0000 (22:08 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 9 Sep 2024 20:08:11 +0000 (22:08 +0200)
js/animation.js

index 23d3ca5a7d5dd80188f61cef5d554ebed0ca1e73..c71ee0ce829af5d94e8366b18ceea7399c8532a3 100644 (file)
@@ -86,7 +86,7 @@
     i.c = (i.c + 2) % 101
   }
 
-  canvas.addEventListener('click', () => {Z ? Z=0:(Z=1;frm())})
+  canvas.addEventListener('click', () => (Z ? Z=0:(Z=1;frm())))
 
   function frm(t) {
     if (Z) requestAnimationFrame(frm)