minor fix for url for expanded image modal

master
Aevann 2022-12-25 03:56:10 +02:00
parent e6803f93e9
commit 5901f5a53f
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ function expandDesktopImage(url) {
if (!url) url = e.target.src
}
document.getElementById("desktop-expanded-image").src = url.replace("200w_d.webp", "giphy.webp");
document.getElementById("desktop-expanded-image-wrap-link").href = url;
document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w_d.webp", "giphy.webp");
bootstrap.Modal.getOrCreateInstance(document.getElementById('expandImageModal')).show();
};