Skip to content

Commit 7ad49b1

Browse files
committed
Fix CI check again
1 parent 0eceeaf commit 7ad49b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -3315,8 +3315,8 @@ class DocSearch {
33153315
}
33163316
}
33173317

3318-
if (typeof exports !== "undefined") {
3319-
exports.DocSearch = DocSearch;
3320-
} else {
3318+
if (typeof window !== "undefined") {
33213319
window.DocSearch = DocSearch;
3320+
} else if (typeof exports !== "undefined") {
3321+
exports.DocSearch = DocSearch;
33223322
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ ${item.displayPath}<span class="${type}">${name}</span>\
596596
}
597597
}
598598

599-
function initSearch(rawSearchIndex) {
600-
rawSearchIndex = rawSearchIndex;
599+
function initSearch(searchIndx) {
600+
rawSearchIndex = searchIndx;
601601
if (typeof window !== "undefined") {
602602
docSearch = new window.DocSearch(rawSearchIndex);
603603
} else if (typeof exports !== "undefined") {

0 commit comments

Comments
 (0)