Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhendricks00 authored Nov 3, 2024
1 parent dd97aa9 commit ce02887
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion platform/firefox/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const approvedUrls = new Map(); // Map to store approved URLs per tab
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",
"https://fmhy.lol",
];

// Helper function to extract URLs from markdown text
function extractUrlsFromMarkdown(markdown) {
Expand Down Expand Up @@ -171,6 +175,11 @@ async function fetchStarredSites() {
starredSites.push("https://fmhy.pages.dev");
}

// Ensure fmhy.lol is always in the starred list
if (!starredSites.includes("https://fmhy.lol")) {
starredSites.push("https://fmhy.lol");
}

console.log("Parsed Starred Sites:", starredSites);
} else {
console.error("Failed to fetch starred sites:", response.status);
Expand Down

0 comments on commit ce02887

Please sign in to comment.