diff options
| -rw-r--r-- | haunt/static/js/gallery.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haunt/static/js/gallery.js b/haunt/static/js/gallery.js index 29ed652..d7ed13b 100644 --- a/haunt/static/js/gallery.js +++ b/haunt/static/js/gallery.js @@ -50,9 +50,9 @@ if (!urlParams.get("g")) { for (let image of response.images) { elem = document.createElement("a"); - elem.href = `${location.protocol}//${location.host}/api/gallery/image?name=${image.filename}` + elem.href = `${location.protocol}//${location.host}/static-ext/${image.filename}`; let thumb = document.createElement("img"); - thumb.src = `${location.protocol}//${location.host}/api/gallery/image?name=${image.thumbnail}`; + thumb.src = `${location.protocol}//${location.host}/static-ext/${image.thumbnail}`; thumb.alt = `${image.title}`; thumb.title = `${image.title} - ${image.datetime}`; elem.appendChild(thumb); |