From 7b7d4fccd34a3c8f915c6c7470d6fa1c3cb2a7ce Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 25 Jan 2024 11:13:24 +0100 Subject: [PATCH] Fix navigation recursion --- resources/main.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/main.mjs b/resources/main.mjs index bdfdb8cb6..672fb8e68 100644 --- a/resources/main.mjs +++ b/resources/main.mjs @@ -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;