From bcf3b0a03243e4e14af0abff6515091405177529 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sun, 14 Dec 2025 12:15:16 +1100 Subject: [PATCH] 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.) --- index.html | 1 + multiplayer.js | 18 +++---- storage.js | 140 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+), 10 deletions(-) create mode 100644 storage.js diff --git a/index.html b/index.html index b0b01fa..0727e1c 100644 --- a/index.html +++ b/index.html @@ -182,6 +182,7 @@ +