Update password protected galleries
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user