Rollup merge of #63774 - chocol4te:fix_63707, r=GuillaumeGomez
Fix `window.hashchange is not a function` Closes #63707.
This commit is contained in:
commit
6da74a2605
@ -344,7 +344,7 @@ if (!DOMTokenList.prototype.remove) {
|
|||||||
var set_fragment = function(name) {
|
var set_fragment = function(name) {
|
||||||
if (browserSupportsHistoryApi()) {
|
if (browserSupportsHistoryApi()) {
|
||||||
history.replaceState(null, null, "#" + name);
|
history.replaceState(null, null, "#" + name);
|
||||||
window.hashchange();
|
highlightSourceLines(null);
|
||||||
} else {
|
} else {
|
||||||
location.replace("#" + name);
|
location.replace("#" + name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user