From 581f6406dcb9496ffbd4a8cedc9e1932bb10ea5f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 22 Dec 2025 18:08:12 -0600 Subject: [PATCH] Small favicon service refactor --- services/favicon.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/services/favicon.ts b/services/favicon.ts index f5ee0597..075e5028 100644 --- a/services/favicon.ts +++ b/services/favicon.ts @@ -37,10 +37,7 @@ export default { // Strip `ai.` and `api.` subdomains for a better chance at finding a favicon hostname = hostname.replace(/^(ai\.|api\.)/, ''); - return fetchFavicon(hostname); + // Fetch the favicon from DuckDuckGo's service + return fetch(`https://external-content.duckduckgo.com/ip3/${hostname}.ico`); }, -}; - -function fetchFavicon(hostname: string): Promise { - return fetch(`https://external-content.duckduckgo.com/ip3/${hostname}.ico`); -} \ No newline at end of file +}; \ No newline at end of file