downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
220 stars 92 forks source link

Added a default username that persists across games when set #300

Closed zhiyi-zhang-duke closed 6 months ago

zhiyi-zhang-duke commented 6 months ago

This code change adds a default_username to the localStorage that is only set when the user updates their username to something that is not a randomly generated name. This value is then checked when other games are loaded and if it is set, is used instead of the randomly generated name.

Here's the state of local storage after a new game is created: image

Here's the state of local storage after the username is updated: image

Here's the state of a new game after the username_default is set: image

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
downforacross.com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2023 5:12am
sweep-ai[bot] commented 6 months ago

Apply Sweep Rules to your PR?

stevenhao commented 6 months ago

looks good!