We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5df91 commit c06abcfCopy full SHA for c06abcf
src/components/Favicon.vue
@@ -15,16 +15,12 @@ import { NO_FAVICON } from '../utils/consts';
15
import { TypeOfUrl } from '../utils/enums';
16
17
const props = defineProps<{
18
- url: string | undefined;
+ url: string;
19
type: TypeOfUrl;
20
}>();
21
22
const faviconValid = computed(
23
- () =>
24
- props.url == undefined ||
25
- props.url == '' ||
26
- props.url.startsWith('chrome://favicon/') ||
27
- props.type == TypeOfUrl.Document,
+ () => props.url.startsWith('chrome://favicon/') || props.type == TypeOfUrl.Document,
28
);
29
30
const faviconUrl = computed(() => `https://www.google.com/s2/favicons?domain=${props.url}&sz=64`);
0 commit comments