From 254198360f2228209cb10d8ef2574e695bcca574 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 12 Feb 2026 14:26:08 -0800 Subject: [PATCH] Only add to cache if hash is available --- javascript/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index 70969e0f7..722a2909b 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -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,