Skip to content

Commit 5a446c1

Browse files
committed
Fix window.hashchange is not a function
1 parent bea0372 commit 5a446c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 1 deletion
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)