mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix window.hashchange is not a function
This commit is contained in:
parent
bea0372a1a
commit
5a446c1ea9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user