Use relative path for DB archive to support subdirectory hosting

This commit is contained in:
Jordan Wages 2025-09-16 18:29:26 -05:00
commit ba679a16d2

View file

@ -13,7 +13,9 @@
*/
(function () {
const DB_ZIP_URL = '/db.zip'; // Adjust if you relocate the archive (e.g., /assets/db.zip)
// Use a relative URL so the app works when hosted under a subdirectory.
// If you move the archive, keep paths relative (e.g., './assets/db.zip').
const DB_ZIP_URL = './db.zip';
const IDB_NAME = 'mp3com-meta-browser';
const IDB_STORE = 'files';
const IDB_KEY = 'mp3com-db-bytes-v1'; // bump if format changes
@ -221,4 +223,3 @@
.replace(/'/g, ''');
}
})();