mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
Fallback logo on offline mode
This commit is contained in:
parent
122f29069c
commit
9640eb7650
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ export default function useLogo() {
|
|||
async function fetchInstanceLogo() {
|
||||
try {
|
||||
const logoURL = await System.fetchLogo(!prefersDarkMode);
|
||||
setLogo(logoURL);
|
||||
logoURL
|
||||
? setLogo(logoURL)
|
||||
: setLogo(prefersDarkMode ? AnythingLLMLight : AnythingLLMDark);
|
||||
} catch (err) {
|
||||
setLogo(prefersDarkMode ? AnythingLLMLight : AnythingLLMDark);
|
||||
console.error("Failed to fetch logo:", err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue