Fix incorrect data handling

Partial reversion of commit c07eddb58d
This commit is contained in:
awsr
2026-02-03 12:25:41 -08:00
parent 40df9ce689
commit 915bcab3c2
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -456,11 +456,9 @@ class GalleryFile extends HTMLElement {
this.size = json.size;
this.mtime = new Date(json.mtime);
if (opts.browser_cache) {
// Store file's actual parent directory (not browsed folder) for consistent cleanup
const fileDir = this.src.replace(/\/+/g, '/').replace(/\/[^/]+$/, '');
await idbAdd({
hash: this.hash,
folder: fileDir,
folder: this.folder,
file: this.name,
size: this.size,
mtime: this.mtime,