Skip to content

Commit 0d8ba99

Browse files
committed
Fix CI error
1 parent b65b525 commit 0d8ba99

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustdoc/html/static/js/search.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -3898,13 +3898,6 @@ function updateCrate(ev) {
38983898
search(true);
38993899
}
39003900

3901-
if (typeof window !== "undefined") {
3902-
registerSearchEvents();
3903-
if (window.searchState.getQueryStringParams().search) {
3904-
search();
3905-
}
3906-
}
3907-
39083901
function initSearch(searchIndx) {
39093902
rawSearchIndex = searchIndx;
39103903
if (typeof window !== "undefined") {
@@ -3929,4 +3922,11 @@ if (typeof window !== "undefined") {
39293922
// exports.
39303923
initSearch(new Map());
39313924
}
3925+
3926+
if (typeof window !== "undefined") {
3927+
registerSearchEvents();
3928+
if (window.searchState.getQueryStringParams().search) {
3929+
search();
3930+
}
3931+
}
39323932
})();

0 commit comments

Comments
 (0)