Closed Ruminini closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
javascript-100-proyectos | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 4, 2024 0:17am |
Fix Cloudflare rate limit issue
Description
Arkanoid was triggering multiple
location.reload()
calls on game over, which caused a Cloudflare rate limit. Added agameOver
boolean to prevent frames from being drawn once the game is over.Steps to Reproduce the Bug
index.html
file locally, you might need to add a timeout to thelocation.reload()
to mimic the effect of a slower server)