Skip to content

Commit c06abcf

Browse files
committed
Fix undefined favicon
1 parent fb5df91 commit c06abcf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Favicon.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@ import { NO_FAVICON } from '../utils/consts';
1515
import { TypeOfUrl } from '../utils/enums';
1616
1717
const props = defineProps<{
18-
url: string | undefined;
18+
url: string;
1919
type: TypeOfUrl;
2020
}>();
2121
2222
const faviconValid = computed(
23-
() =>
24-
props.url == undefined ||
25-
props.url == '' ||
26-
props.url.startsWith('chrome://favicon/') ||
27-
props.type == TypeOfUrl.Document,
23+
() => props.url.startsWith('chrome://favicon/') || props.type == TypeOfUrl.Document,
2824
);
2925
3026
const faviconUrl = computed(() => `https://www.google.com/s2/favicons?domain=${props.url}&sz=64`);

0 commit comments

Comments
 (0)