File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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" ) {
You can’t perform that action at this time.
0 commit comments