From 25232f2f17b4c9ed666f0ad9f249936d487d5759 Mon Sep 17 00:00:00 2001
From: Owen <och4609@g.rit.edu>
Date: Tue, 22 Oct 2024 15:01:05 -0400
Subject: Update icons

---
 extension/src/Bookmark.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'extension/src/Bookmark.tsx')

diff --git a/extension/src/Bookmark.tsx b/extension/src/Bookmark.tsx
index 4e4476e..42ea8a8 100644
--- a/extension/src/Bookmark.tsx
+++ b/extension/src/Bookmark.tsx
@@ -1,6 +1,7 @@
 import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
 
 function Bookmark(props: {data: BookmarkTreeNode}) {
+    
     return(
         <a className="bookmark draggable" href={props.data.url}>
             <img alt="Bookmark icon" src={faviconURL(props.data.url)}></img>
@@ -14,10 +15,11 @@ function faviconURL(u: string | undefined) {
     u = new URL(u).hostname.toString();
     // const url = new URL(`https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${u}&size=128`)
     const url = new URL('https://www.google.com/s2/favicons');
-    url.searchParams.set("sz", "128");
+    url.searchParams.set("sz", "256");
+    u = u.split(".")[u.split(".").length-2] +"."+ u.split(".")[u.split(".").length-1]
     url.searchParams.set("domain_url", u);
-    console.log(url);
     return url.toString();
+   
 }
 
 
-- 
cgit v1.2.3

