all-in-one/php/public/base_path.js
Lorenzo Moscati 10529a597c
Added suggested changes
Signed-off-by: Lorenzo Moscati <lorenzo@moscati.page>
2025-11-04 15:10:41 +01:00

7 lines
No EOL
289 B
JavaScript

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);
}
});