Skip to content

Commit

Permalink
Rollup merge of rust-lang#63774 - chocol4te:fix_63707, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Fix `window.hashchange is not a function`

Closes rust-lang#63707.
  • Loading branch information
Centril authored Sep 3, 2019
2 parents b505208 + 5a446c1 commit cdc821f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ if (!DOMTokenList.prototype.remove) {
var set_fragment = function(name) {
if (browserSupportsHistoryApi()) {
history.replaceState(null, null, "#" + name);
window.hashchange();
highlightSourceLines(null);
} else {
location.replace("#" + name);
}
Expand Down

0 comments on commit cdc821f

Please sign in to comment.