Skip to content

Commit 591d0f4

Browse files
committed
Fix CI check again
1 parent d09f04f commit 591d0f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
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
}

0 commit comments

Comments
 (0)