Skip to content

Commit

Permalink
Fix window.hashchange is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckeogh committed Aug 21, 2019
1 parent bea0372 commit 5a446c1
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 5a446c1

Please sign in to comment.