Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 25, 2024
1 parent 41f6d2a commit 90e96d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 90e96d7

Please sign in to comment.