chore: streamline the URL used for resources like favicon.png
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import sha256 from 'js-sha256';
|
||||
import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
@@ -12,7 +13,6 @@ dayjs.extend(isToday);
|
||||
dayjs.extend(isYesterday);
|
||||
dayjs.extend(localizedFormat);
|
||||
|
||||
import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
import { TTS_RESPONSE_SPLIT } from '$lib/types';
|
||||
|
||||
import { marked } from 'marked';
|
||||
@@ -346,7 +346,7 @@ export const generateInitialsImage = (name) => {
|
||||
console.log(
|
||||
'generateInitialsImage: failed pixel test, fingerprint evasion is likely. Using default image.'
|
||||
);
|
||||
return '/user.png';
|
||||
return `${WEBUI_BASE_URL}/user.png`;
|
||||
}
|
||||
|
||||
ctx.fillStyle = '#F39C12';
|
||||
|
||||
Reference in New Issue
Block a user