File tree 1 file changed +5
-4
lines changed
src/librustdoc/html/static/js
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3723,9 +3723,9 @@ async function search(forced) {
3723
3723
}
3724
3724
3725
3725
/**
3726
- * Callback for when the search form is submitted.
3727
- * @param {Event } [e] - The event that triggered this call, if any
3728
- */
3726
+ * Callback for when the search form is submitted.
3727
+ * @param {Event } [e] - The event that triggered this call, if any
3728
+ */
3729
3729
function onSearchSubmit ( e ) {
3730
3730
e . preventDefault ( ) ;
3731
3731
searchState . clearInputTimeout ( ) ;
@@ -3903,7 +3903,8 @@ function initSearch(searchIndx) {
3903
3903
if ( typeof window !== "undefined" ) {
3904
3904
docSearch = new DocSearch ( rawSearchIndex ) ;
3905
3905
} else if ( typeof exports !== "undefined" ) {
3906
- exports . docSearch = new DocSearch ( rawSearchIndex ) ;
3906
+ docSearch = new DocSearch ( rawSearchIndex ) ;
3907
+ exports . docSearch = docSearch ;
3907
3908
exports . parseQuery = DocSearch . parseQuery ;
3908
3909
}
3909
3910
}
You can’t perform that action at this time.
0 commit comments