File tree 2 files changed +5
-5
lines changed
src/librustdoc/html/static/js
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3315,8 +3315,8 @@ class DocSearch {
3315
3315
}
3316
3316
}
3317
3317
3318
- if ( typeof exports !== "undefined" ) {
3319
- exports . DocSearch = DocSearch ;
3320
- } else {
3318
+ if ( typeof window !== "undefined" ) {
3321
3319
window . DocSearch = DocSearch ;
3320
+ } else if ( typeof exports !== "undefined" ) {
3321
+ exports . DocSearch = DocSearch ;
3322
3322
}
Original file line number Diff line number Diff line change @@ -596,8 +596,8 @@ ${item.displayPath}<span class="${type}">${name}</span>\
596
596
}
597
597
}
598
598
599
- function initSearch ( rawSearchIndex ) {
600
- rawSearchIndex = rawSearchIndex ;
599
+ function initSearch ( searchIndx ) {
600
+ rawSearchIndex = searchIndx ;
601
601
if ( typeof window !== "undefined" ) {
602
602
docSearch = new window . DocSearch ( rawSearchIndex ) ;
603
603
} else if ( typeof exports !== "undefined" ) {
You can’t perform that action at this time.
0 commit comments