Guests had to retype their username on every page load. Now the entered name is cached in localStorage and reused on subsequent visits. The cache is invalidated by any login/logout transition: - on a page load with a server-provided username (logged in), we clear the cache, so a later logout starts fresh - on a guest page load with no cache, we prompt and save what they type |
||
|---|---|---|
| .. | ||
| auth.html | ||
| base.html | ||
| browse.html | ||
| chat.html | ||
| index.html | ||
| profile.html | ||
| search.html | ||