diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index dcbb952..23534b3 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -3742,7 +3742,7 @@ html[theme="f0ck95"] ._204863 .location::before { display: inline-block; width: 16px; height: 16px; - background-image: url('/s/img/favicon.gif'); + background-image: var(--favicon-url, url('/s/img/favicon.gif')); background-size: contain; background-repeat: no-repeat; background-position: center; @@ -3903,7 +3903,7 @@ html[theme="f0ck95d"] ._204863 .location::before { display: inline-block; width: 16px; height: 16px; - background-image: url('/s/img/favicon.gif'); + background-image: var(--favicon-url, url('/s/img/favicon.gif')); background-size: contain; background-repeat: no-repeat; background-position: center; diff --git a/views/snippets/header.html b/views/snippets/header.html index f48495d..f6e0cd5 100644 --- a/views/snippets/header.html +++ b/views/snippets/header.html @@ -22,6 +22,7 @@ } @endif :root { + --favicon-url: url('@if(custom_favicon && custom_favicon.length > 0){{ custom_favicon }}@else/s/img/favicon.gif@endif'); @if(session && session.font) --font: 'CustomUserFont', monospace !important; @elseif(typeof default_font !== 'undefined' && default_font && default_font.length > 0)