Rollup merge of #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
This commit is contained in:
Mazdak Farrokhzad 2019-12-16 17:33:13 +01:00 committed by GitHub
commit 55753a62cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2683,7 +2683,7 @@ function getSearchElement() {
insertAfter(popup, getSearchElement());
}
onHashChange();
onHashChange(null);
window.onhashchange = onHashChange;
buildHelperPopup();