fix view js a bit

This commit is contained in:
Shish 2024-01-01 17:17:27 +00:00
parent 3acc3fa607
commit 47dfc2c36e

View file

@ -15,7 +15,7 @@ function clearViewMode() {
function updateAttr(selector, attr, value) {
document.querySelectorAll(selector).forEach(function(e) {
let current = e.getAttribute(attr);
let newval = joinUrlSegments(current, query);
let newval = joinUrlSegments(current, value);
e.setAttribute(attr, newval);
});
}