From 9d2a5a1f4aa72bd5e633277958ad6142d771cd66 Mon Sep 17 00:00:00 2001 From: cssbubble Date: Tue, 7 Jun 2022 10:54:27 +0100 Subject: [PATCH] correction --- src/ItemDetail.svelte | 4 ++++ 1 file changed, 4 insertions(+) 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 = {};