FEATURE: Migrate username storage from localStorage to IndexedDB

- Created storage.js wrapper with IndexedDB support
- Automatic fallback to localStorage if IndexedDB unavailable
- Updated all username storage calls to use async API
- Better performance and more storage capacity
- Improved PWA compatibility

Benefits:
- 50MB+ storage vs 5-10MB localStorage
- Async API doesn't block main thread
- Better for future features (game history, stats, etc.)
This commit is contained in:
2025-12-14 12:15:16 +11:00
parent bc76e7aab1
commit bcf3b0a032
3 changed files with 149 additions and 10 deletions

View File

@@ -182,6 +182,7 @@
</div>
</div>
<script src="storage.js"></script>
<script src="multiplayer.js"></script>
<script src="game.js"></script>
<script>