mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Only add to cache if hash is available
This commit is contained in:
@@ -520,7 +520,7 @@ class GalleryFile extends HTMLElement {
|
||||
this.height = json.height;
|
||||
this.size = json.size;
|
||||
this.mtime = new Date(json.mtime);
|
||||
if (opts.browser_cache) {
|
||||
if (opts.browser_cache && this.hash) {
|
||||
await idbAdd({
|
||||
hash: this.hash,
|
||||
folder: this.fullFolder,
|
||||
|
||||
Reference in New Issue
Block a user