DEV Community

Discussion on: Fancy favicon external link component in Vue

Collapse
kapcash profile image
Florent Catiau-Tristant

To parse the url, you can also use the URL constructor:

new URL(props.href).host
Enter fullscreen mode Exit fullscreen mode

Nice post anyway! I didn't know that api to get the favicon :)