diff --git a/resources/main.mjs b/resources/main.mjs index 71c465d1c..b0b48946a 100644 --- a/resources/main.mjs +++ b/resources/main.mjs @@ -358,10 +358,8 @@ class MainBenchmarkClient { } _updateDocumentTitle(hash) { - let sectionTitle = ""; const maybeSection = document.querySelector(hash); - if (maybeSection) - sectionTitle = maybeSection.getAttribute("data-title") ?? ""; + const sectionTitle = maybeSection?.getAttribute("data-title") ?? ""; document.title = `Speedometer 3 ${sectionTitle}`.trimEnd(); }