https://github.com/python/cpython/commit/2db9573e231e2589f44d50ede5c68c6360f028cd
commit: 2db9573e231e2589f44d50ede5c68c6360f028cd
branch: main
author: Stan Ulbrych <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-12-10T14:10:23Z
summary:
Tachyon: Set favicon for heatmap pages (#142493)
files:
M Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js
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);
+ }
+})();
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]