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 8feaaea commit dd97aa9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion platform/chromium/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",
];

function extractUrlsFromMarkdown(markdown) {
const urlRegex = /https?:\/\/[^\s)]+/g;
Expand Down Expand Up @@ -159,6 +163,10 @@ async function fetchStarredSites() {
starredSites.push("https://fmhy.pages.dev");
}

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 dd97aa9

Please sign in to comment.