chore: streamline the URL used for resources like favicon.png

This commit is contained in:
guenhter
2025-07-09 09:14:51 +02:00
parent 0a3c448a52
commit 196af9eaf7
29 changed files with 66 additions and 42 deletions
+2 -2
View File
@@ -19,10 +19,10 @@
if (isDarkMode) {
const darkImage = new Image();
darkImage.src = '/static/favicon-dark.png';
darkImage.src = `${WEBUI_BASE_URL}/static/favicon-dark.png`;
darkImage.onload = () => {
logo.src = '/static/favicon-dark.png';
logo.src = `${WEBUI_BASE_URL}/static/favicon-dark.png`;
logo.style.filter = ''; // Ensure no inversion is applied if splash-dark.png exists
};