Fix navigation recursion (#357)
Conditionally update window.location.hash for #home to avoid navigation recursion.
This commit is contained in:
parent
3d93f179b6
commit
b0a465d60c
1 changed files with 2 additions and 1 deletions
|
|
@ -349,7 +349,8 @@ class MainBenchmarkClient {
|
|||
|
||||
_setLocationHash(hash) {
|
||||
if (hash === "#home" || hash === "") {
|
||||
window.location.hash = "#home";
|
||||
if (window.location.hash !== hash)
|
||||
window.location.hash = "#home";
|
||||
this._removeLocationHash();
|
||||
} else {
|
||||
window.location.hash = hash;
|
||||
|
|
|
|||
Loading…
Reference in a new issue