diff --git a/src/ItemDetail.svelte b/src/ItemDetail.svelte index 3ff8885..c486a61 100644 --- a/src/ItemDetail.svelte +++ b/src/ItemDetail.svelte @@ -20,6 +20,10 @@ reviews = data; }); + function get_tld(url){ + return(new URL(url)).hostname.replace('www.',''); + } + function saveStatusToLocalStorage(event){ // console.log($bookmarks) let newobj = {};