a simple web player for subsonic tinysub.devins.page
subsonic navidrome javascript
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: db fixes

intergrav 695e897b 43573cd5

+11 -6
+10 -5
src/js/auth.js
··· 81 81 82 82 // clear all storage and reload to logout 83 83 async function handleLogout() { 84 - if (indexedDB.databases) { 85 - (await indexedDB.databases()).forEach((db) => 86 - indexedDB.deleteDatabase(db.name), 87 - ); 84 + try { 85 + if (indexedDB.databases) { 86 + const dbs = await indexedDB.databases(); 87 + for (const db of dbs) { 88 + indexedDB.deleteDatabase(db.name); 89 + } 90 + } 91 + localStorage.clear(); 92 + } catch (error) { 93 + console.error("[Auth] Logout cleanup failed:", error); 88 94 } 89 - localStorage.clear(); 90 95 location.reload(); 91 96 }
+1 -1
src/js/image-cache.js
··· 24 24 if (this.db) return this.db; 25 25 try { 26 26 await new Promise((resolve) => { 27 - const req = indexedDB.open("tinysubCache", 1); 27 + const req = indexedDB.open("tinysub", 1); 28 28 req.onsuccess = () => { 29 29 this.db = req.result; 30 30 resolve();