From ac362350b12305fedf81c3a3ff0e8978b02d97a3 Mon Sep 17 00:00:00 2001 From: Kenneth Hendricks <50819541+kenhendricks00@users.noreply.github.com> Date: Sat, 2 Nov 2024 13:53:29 -0400 Subject: [PATCH] Update background.js Added manual star for https://fmhy.pages.dev/ --- platform/firefox/js/background.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/firefox/js/background.js b/platform/firefox/js/background.js index 446dce4..dc8b475 100644 --- a/platform/firefox/js/background.js +++ b/platform/firefox/js/background.js @@ -9,7 +9,7 @@ const starredListURL = let unsafeSitesRegex = null; let potentiallyUnsafeSitesRegex = null; let safeSites = []; -let starredSites = ["https://fmhy.net", "https://fmhy.pages.dev/"]; +let starredSites = ["https://fmhy.net", "https://fmhy.pages.dev"]; // Helper function to extract URLs from markdown text function extractUrlsFromMarkdown(markdown) { @@ -149,6 +149,11 @@ async function fetchStarredSites() { starredSites.push("https://fmhy.net"); } + // Ensure fmhy.pages.dev is always in the starred list + if (!starredSites.includes("https://fmhy.pages.dev")) { + starredSites.push("https://fmhy.pages.dev"); + } + console.log("Parsed Starred Sites:", starredSites); } else { console.error("Failed to fetch starred sites:", response.status);