Skip to content

Commit 132c08c

Browse files
nicomiguelinoclaude
andcommitted
fix(asset-metadata): prevent broken image request for brand logo
- Remove empty `src` attribute to avoid spurious document URL request - Add `hidden` attribute so no broken-image icon appears before JS loads - Unhide the image only when a valid `logoUrl` is available Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d3f2ee5 commit 132c08c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

edge-apps/asset-metadata/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
</div>
9393

9494
<div class="card logo-card">
95-
<img class="brand-logo" id="brand-logo" src="" alt="Brand Logo" />
95+
<img class="brand-logo" id="brand-logo" alt="Brand Logo" hidden />
9696
</div>
9797

9898
<div class="card version-card">

edge-apps/asset-metadata/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ document.addEventListener('DOMContentLoaded', async () => {
6060
const logoImg = document.getElementById('brand-logo') as HTMLImageElement
6161
if (logoImg && logoUrl) {
6262
logoImg.src = logoUrl
63+
logoImg.hidden = false
6364
}
6465

6566
setText('hostname', getHostname())

0 commit comments

Comments
 (0)