Skip to content

Commit b8a586b

Browse files
committed
fix(BlueprintAssetIcon): data URLs have null origin
1 parent 1225a9e commit b8a586b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/webui/src/client/lib/Components/BlueprintAssetIcon.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export function BlueprintAssetIcon({ src, className }: { src: string; className?
1212

1313
useEffect(() => {
1414
if (svgAsset) return
15-
if (url.origin !== window.origin) return
15+
if (url.origin !== window.origin && url.origin !== null) {
16+
console.error(`Invalid origin for BlueprintAssetIcon: ${url}`)
17+
return
18+
}
1619

1720
const abort = new AbortController()
1821

0 commit comments

Comments
 (0)