Skip to content

Commit 6173105

Browse files
committed
Adds query param for version no
This adds support for using a query parameter for selecting the version no
1 parent bae7bdc commit 6173105

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
const queryParams = new URLSearchParams(window.location.search);
8383
const searchParam = queryParams.get('search');
8484
const searchTerm = null !== searchParam ? searchParam : '';
85+
const versionNumber = null !== queryParams.get('version') ? 'v' + queryParams.get('version') : 'master';
8586
new Vue({
8687
el: '#app',
8788
data: {
@@ -90,7 +91,7 @@
9091
configurationDescriptions: [],
9192
searchCondition: searchTerm,
9293
shouldStable: false,
93-
version: 'master',
94+
version: versionNumber,
9495
oldVersion: undefined,
9596
versionOptions: ['master']
9697
},

0 commit comments

Comments
 (0)