mirror of https://github.com/vladmandic/automatic
parent
40df9ce689
commit
915bcab3c2
|
|
@ -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,
|
||||
|
|
|
|||
2
wiki
2
wiki
|
|
@ -1 +1 @@
|
|||
Subproject commit e4b53a6d367b4477323cdb171d6bdddf973758a1
|
||||
Subproject commit a678731c5da5d77f7c21edf7f1d62d8307d0d7fe
|
||||
Loading…
Reference in New Issue