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

Too strict

parent 184e6ee5
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,9 @@ ...@@ -10,11 +10,9 @@
<script> <script>
function getVersion() { function getVersion() {
const segments = location.pathname.split('/') const segments = location.pathname.split('/')
if (segments.length === 5) { if (segments.length >= 4) {
console.log('version', segments[3], segments)
return segments[3] return segments[3]
} else { } else {
console.log('version defaulted to 1.4')
return '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