From fc48216d6fc6523a7c5fa405378250d70cae64e1 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sun, 2 Feb 2025 23:22:27 +0500 Subject: [PATCH] Update title on Image change --- src/static/imagePageUtils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/static/imagePageUtils.js b/src/static/imagePageUtils.js index 6f80dde..733ecd4 100644 --- a/src/static/imagePageUtils.js +++ b/src/static/imagePageUtils.js @@ -65,6 +65,10 @@ async function _tmp_loadImage(iid) { window.location.href = "/image/?id=0"; } + document.querySelector( + "title" + ).textContent = `WAH-Collection/Image: ${images[iid]}`; + const image = images[iid]; const placeholder = document.querySelector( '[data-type="placeholder__image"]'