fix: address assistant review feedback

This commit is contained in:
ajnart committed 2026-08-14 11:32:10 +02:00
1 parent 33695753dd
commit 5ceef06b4b
26 files changed
+340 -49

No files matched your search

@@ -111,5 +111,8 @@ export type ConfigureBoardSettingsResult =
export const normalizeAssistantAppIconUrl = (value: string | undefined) => {
if (!value) return "";
return value.startsWith("/") || URL.canParse(value) ? value : "";
if (value.startsWith("/") && !value.startsWith("//")) return value;
if (!URL.canParse(value)) return "";
const protocol = new URL(value).protocol;
return protocol === "http:" || protocol === "https:" ? value : "";
};