Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
Added manual star for https://fmhy.pages.dev/
  • Loading branch information
kenhendricks00 authored Nov 2, 2024
1 parent 977306b commit ac36235
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platform/firefox/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ac36235

Please sign in to comment.