Use relative path for DB archive to support subdirectory hosting
This commit is contained in:
parent
9c1091d760
commit
ba679a16d2
1 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function () {
|
(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_NAME = 'mp3com-meta-browser';
|
||||||
const IDB_STORE = 'files';
|
const IDB_STORE = 'files';
|
||||||
const IDB_KEY = 'mp3com-db-bytes-v1'; // bump if format changes
|
const IDB_KEY = 'mp3com-db-bytes-v1'; // bump if format changes
|
||||||
|
|
@ -221,4 +223,3 @@
|
||||||
.replace(/'/g, ''');
|
.replace(/'/g, ''');
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue