diff --git a/apps/desktop/layer/renderer/src/hooks/common/useFeedSafeUrl.ts b/apps/desktop/layer/renderer/src/hooks/common/useFeedSafeUrl.ts index 37ecc983e..5aa335882 100644 --- a/apps/desktop/layer/renderer/src/hooks/common/useFeedSafeUrl.ts +++ b/apps/desktop/layer/renderer/src/hooks/common/useFeedSafeUrl.ts @@ -31,8 +31,12 @@ export const useFeedSafeUrl = (entryId: string) => { } if (href.startsWith("http")) { - const domain = new URL(href).hostname - if (domain === "localhost") return null + try { + const domain = new URL(href).hostname + if (domain === "localhost") return null + } catch { + return null + } return href }