Skip to content

Commit fc6b93c

Browse files
committed
[chrome] hide favicon for sites with none
1 parent bb601cf commit fc6b93c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/chrome/src/components/TabStrip.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ export const DragTab: Component<
138138
}}
139139
>
140140
<div class={use(this.active).map((x) => `main ${x ? "active" : ""}`)}>
141-
<img
142-
src={use(this.tab.icon)}
143-
on:error={() => (this.tab.icon = defaultFaviconUrl)}
144-
/>
141+
{use(this.tab.icon).andThen(<img src={use(this.tab.icon)} />)}
145142
<span>{use(this.tab.title)}</span>
146143
<button
147144
class="close"

0 commit comments

Comments
 (0)