chore: streamline the URL used for resources like favicon.png
This commit is contained in:
1 parent
0a3c448a52
commit
196af9eaf7
29 files changed
+66
-42
No files matched your search
@@ -123,10 +123,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 favicon-dark.png exists
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user