From 2d4747a14d68b4473c5a2fc4ceac560c38a30f65 Mon Sep 17 00:00:00 2001
From: Owen <och4609@g.rit.edu>
Date: Thu, 17 Oct 2024 13:10:11 -0400
Subject: Added style sheet

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

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

diff --git a/extension/src/Bookmark.tsx b/extension/src/Bookmark.tsx
index c555ffb..5dc16b9 100644
--- a/extension/src/Bookmark.tsx
+++ b/extension/src/Bookmark.tsx
@@ -11,10 +11,12 @@ function Bookmark(props: {data: BookmarkTreeNode}) {
 
 function faviconURL(u: string | undefined) {
     if (!u) return "";
-    u = new URL(u).origin.toString();
-    const url = new URL(chrome.runtime.getURL("/_favicon/"));
-    url.searchParams.set("pageUrl", u);
-    url.searchParams.set("size", "32");
+    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("domain_url", u);
+    console.log(url);
     return url.toString();
 }
 
-- 
cgit v1.2.3

