Only add to cache if hash is available

This commit is contained in:
awsr
2026-02-12 14:26:08 -08:00
parent 792d2a4d99
commit 254198360f
+1 -1
View File
@@ -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,