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 5, 2019
2 parents 4c268ca + 5a446c1 commit e56fe69
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 e56fe69

Please sign in to comment.