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 f41d284 commit a423d2dCopy full SHA for a423d2d
src/librustdoc/html/static/main.js
@@ -57,7 +57,6 @@ function defocusSearchBar() {
57
getSearchInput().blur();
58
}
59
60
-
61
(function() {
62
"use strict";
63
@@ -494,7 +493,8 @@ function defocusSearchBar() {
494
493
url = url.substring(0, url.length - match[0].length);
495
496
497
- url += "/" + document.getElementsByClassName("version-selector")[0].value + stripped;
+ var selectedVersion = document.getElementsByClassName("version-selector")[0].value;
+ url += "/" + selectedVersion + stripped;
498
499
document.location.href = url;
500
};
0 commit comments