Skip to content

Commit 55753a6

Browse files
authored
Rollup merge of rust-lang#67336 - GuillaumeGomez:fix-js-error, r=Dylan-DPC
Fix JS error when loading page with search For example when you load this page: https://doc.rust-lang.org/nightly/std/num/struct.NonZeroI8.html?search=foo, you get a nice JS error: ``` TypeError: ev is undefined ``` r? @kinnison
2 parents a1e8a0a + 5f68732 commit 55753a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ function getSearchElement() {
26832683
insertAfter(popup, getSearchElement());
26842684
}
26852685

2686-
onHashChange();
2686+
onHashChange(null);
26872687
window.onhashchange = onHashChange;
26882688

26892689
buildHelperPopup();

0 commit comments

Comments
 (0)