We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b65b525 commit 0d8ba99Copy full SHA for 0d8ba99
src/librustdoc/html/static/js/search.js
@@ -3898,13 +3898,6 @@ function updateCrate(ev) {
3898
search(true);
3899
}
3900
3901
-if (typeof window !== "undefined") {
3902
- registerSearchEvents();
3903
- if (window.searchState.getQueryStringParams().search) {
3904
- search();
3905
- }
3906
-}
3907
-
3908
function initSearch(searchIndx) {
3909
rawSearchIndex = searchIndx;
3910
if (typeof window !== "undefined") {
@@ -3929,4 +3922,11 @@ if (typeof window !== "undefined") {
3929
3922
// exports.
3930
3923
initSearch(new Map());
3931
3924
3925
+
3926
+if (typeof window !== "undefined") {
3927
+ registerSearchEvents();
3928
+ if (window.searchState.getQueryStringParams().search) {
+ search();
+ }
+}
3932
})();
0 commit comments