We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac191d commit 9c2ad05Copy full SHA for 9c2ad05
docs/index.html
@@ -79,6 +79,8 @@
79
<script>
80
const RusfmtTagsUrl = 'https://api.github.com/repos/rust-lang/rustfmt/tags';
81
const UrlHash = window.location.hash.replace(/^#/, '');
82
+ const queryParams = new URLSearchParams(window.location.search);
83
+ const versionNumber = null !== queryParams.get('version') ? 'v' + queryParams.get('version') : 'master';
84
new Vue({
85
el: '#app',
86
data: {
@@ -87,7 +89,7 @@
87
89
configurationDescriptions: [],
88
90
searchCondition: UrlHash,
91
shouldStable: false,
- version: 'master',
92
+ version: versionNumber,
93
oldVersion: undefined,
94
versionOptions: ['master']
95
},
0 commit comments