From b2111751a1b55c6a15d8e8e26f6f2453a305ebc3 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 9 Dec 2025 20:39:49 +0000 Subject: [PATCH] Set favicon in tachyon --- .../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 f44ebcff4ffe89..7fcd720d45d7b3 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); + } +})();