Skip to content

Commit 12353b3

Browse files
authored
Merge pull request #1274 from herbie-fp/hide-demo-metrics-link
Hide the metrics link for the online demo (by seed)
2 parents bb59eb8 + 5dcf992 commit 12353b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/reports/resources/report-page.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,12 @@ function buildDropdown(options, selected, placeholder, onChange) {
171171
}
172172

173173
function buildHeader(title) {
174+
// The online demo always runs with seed 1; hide the Metrics link there
175+
const showMetricsLink = resultsJsonData?.seed != 1
174176
return Element("header", {}, [
175177
Element("h1", {}, title),
176178
Element("img", { src: "logo-car.png" }, []),
177-
Element("nav", {}, [
179+
showMetricsLink && Element("nav", {}, [
178180
Element("ul", {}, [
179181
Element("li", {}, [
180182
Element("a", { href: "timeline.html" }, ["Metrics"])

0 commit comments

Comments
 (0)