Update password protected galleries

This commit is contained in:
Alan Grainger
2025-01-10 14:11:49 +08:00
parent 4ad054f87e
commit 3ab84b00c3
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -51,8 +51,8 @@
body: JSON.stringify(Object.fromEntries(formData.entries()))
})
if (res.status === 200) {
document.documentElement.innerHTML = await res.text()
initLightGallery(<%- JSON.stringify(lgConfig) %>) // initLightGallery imported from web.js
const params = await res.json()
window.location = window.location + '?' + new URLSearchParams(params).toString()
}
} catch (e) { }
}