PerBonomi
7 years agoBoss
Too many tabs? Can't tell Prod and Stage apart anymore?
If you're crazy like me and your tab bar looks like one grey blur because of all the tabs you have open, maybe this is for you.
I keep having to click tabs just to see if it's a Prod or Stage page, so I added this to the header. One regular favicon and one colourful one, so I know instantly if a tab is prod or stage.
<#attempt>
<#assign current_url = http.request.url/>
<#if current_url?contains("<insert stage-unique url section, e.g. community-stage.site.com>") == true>
<link rel="icon" href="colourful icon">
<#else>
<link rel="icon" href="normal icon">
</#if>
<#recover>
<link rel="icon" href="normal icon">
</#attempt>