From f81bb8b97de7442f95339b93d5885a5f79f36789 Mon Sep 17 00:00:00 2001 From: Sameera Sandakelum Date: Thu, 10 Apr 2025 22:07:54 +0530 Subject: Update background.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index f7b5cb5..f823262 100644 --- a/background.js +++ b/background.js @@ -125,7 +125,11 @@ async function getStylesForHostname(hostname, settings) { (isWhitelistMode && siteInList) || (!isWhitelistMode && !siteInList) ) { - return cssCache.get("example.com"); + if (cssCache.has("example.com")) { + return cssCache.get("example.com"); + } else { + return "/* Default fallback CSS */"; + } } } } -- cgit v1.2.3