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

Too strict

parent a98c8a2c
Branches
No related tags found
No related merge requests found
......@@ -10,11 +10,9 @@
<script>
function getVersion() {
const segments = location.pathname.split('/')
if (segments.length === 5) {
console.log('version', segments[3], segments)
if (segments.length >= 4) {
return segments[3]
} else {
console.log('version defaulted to 1.4')
return '1.4'
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment