File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Lib/profiling/sampling/_heatmap_assets Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -38,3 +38,18 @@ function intensityToColor(intensity) {
3838 const rootStyle = getComputedStyle ( document . documentElement ) ;
3939 return rootStyle . getPropertyValue ( `--heat-${ level } ` ) . trim ( ) ;
4040}
41+
42+ // ============================================================================
43+ // Favicon (Reuse logo image as favicon)
44+ // ============================================================================
45+
46+ ( function ( ) {
47+ const logo = document . querySelector ( '.brand-logo img' ) ;
48+ if ( logo ) {
49+ const favicon = document . createElement ( 'link' ) ;
50+ favicon . rel = 'icon' ;
51+ favicon . type = 'image/png' ;
52+ favicon . href = logo . src ;
53+ document . head . appendChild ( favicon ) ;
54+ }
55+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments