diff options
author | Sameera Sandakelum <[email protected]> | 2025-04-10 22:07:54 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2025-04-10 22:07:54 +0530 |
commit | f81bb8b97de7442f95339b93d5885a5f79f36789 (patch) | |
tree | fa55d292e47fb8e51f74b851d0e06adac096b21c /background.js | |
parent | ef561a67101def64da3150067c562d358bb8d802 (diff) |
Update background.js
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'background.js')
-rw-r--r-- | background.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 */"; + } } } } |