{#if tab}
{#if url}
loader.onLoad()} on:error={() => loader.onError} class="w-5 h-5 mt-2 rounded-full wicon" src="{tab.favIconUrl}" alt="favicon" />
{#if isValid}
Rate Website
{:else}
Invalid URL
{/if}
Hostname: {url.hostname.length > 18 ? url.hostname.slice(0,16) + '...': url.hostname }
URL: {url.href.length > 20 ? '...' + url.href.slice(-20) : url.href}
{/if}
{/if}