Added suggested changes

Signed-off-by: Lorenzo Moscati <lorenzo@moscati.page>
This commit is contained in:
Lorenzo Moscati 2025-10-14 15:59:28 +02:00
parent 3bb9cdf31d
commit 10529a597c
No known key found for this signature in database
3 changed files with 20 additions and 7 deletions

View file

@ -1,3 +1,7 @@
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById("base_path") && (document.getElementById("base_path").value = window.location.pathname.slice(0, -11));
document.addEventListener("DOMContentLoaded", function() {
basePath = document.getElementById("base_path")
if (basePath) {
// Remove '/containers' from the end of the path, to get the base path only
basePath.value = window.location.pathname.slice(0, -11);
}
});