diff options
-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 */"; + } } } } |