Skip to content

Commit 3d93f17

Browse files
authored
Fix navigation for Firefox (#353)
Refreshing the page with results and a #summary hash breaks on Firefox. Explicitly setting the #home has a workaround cleanly shows the main page again.
1 parent 7c0931e commit 3d93f17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/main.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,12 @@ class MainBenchmarkClient {
348348
}
349349

350350
_setLocationHash(hash) {
351-
if (hash === "#home" || hash === "")
351+
if (hash === "#home" || hash === "") {
352+
window.location.hash = "#home";
352353
this._removeLocationHash();
353-
else
354+
} else {
354355
window.location.hash = hash;
356+
}
355357
}
356358

357359
_removeLocationHash() {

0 commit comments

Comments
 (0)