From 2db9573e231e2589f44d50ede5c68c6360f028cd Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:10:23 +0000 Subject: [PATCH] Tachyon: Set favicon for heatmap pages (#142493) --- .../sampling/_heatmap_assets/heatmap_shared.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js b/Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js index f44ebcff4ffe..7fcd720d45d7 100644 --- a/Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js +++ b/Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js @@ -38,3 +38,18 @@ function intensityToColor(intensity) { const rootStyle = getComputedStyle(document.documentElement); return rootStyle.getPropertyValue(`--heat-${level}`).trim(); } + +// ============================================================================ +// Favicon (Reuse logo image as favicon) +// ============================================================================ + +(function() { + const logo = document.querySelector('.brand-logo img'); + if (logo) { + const favicon = document.createElement('link'); + favicon.rel = 'icon'; + favicon.type = 'image/png'; + favicon.href = logo.src; + document.head.appendChild(favicon); + } +})(); -- 2.47.3