Skip to content
Snippets Groups Projects
Verified Commit 0bf17313 authored by Martin Weise's avatar Martin Weise
Browse files

Need JS also

parent 2a9bab35
No related branches found
No related tags found
No related merge requests found
function getVersion() {
const segments = location.pathname.split('/');
if (segments.length >= 4) {
return segments[3];
} else {
return '__APPVERSION__';
}
}
function switchVersion(value) {
if (!value) { return }
this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/';
}
document.getElementById("version").value = getVersion();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment