Skip to content

Commit 6da74a2

Browse files
authored
Rollup merge of #63774 - chocol4te:fix_63707, r=GuillaumeGomez
Fix `window.hashchange is not a function` Closes #63707.
2 parents a8d4e4f + 5a446c1 commit 6da74a2

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
@@ -344,7 +344,7 @@ if (!DOMTokenList.prototype.remove) {
344344
var set_fragment = function(name) {
345345
if (browserSupportsHistoryApi()) {
346346
history.replaceState(null, null, "#" + name);
347-
window.hashchange();
347+
highlightSourceLines(null);
348348
} else {
349349
location.replace("#" + name);
350350
}

0 commit comments

Comments
 (0)