diff --git a/background/style-manager.js b/background/style-manager.js index a46733a4..a7b25b97 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -301,10 +301,12 @@ const styleManager = (() => { let code = ''; for (const section of data.sections) { if (urlMatchSection(url, section)) { - code += section.code; + if (!isCodeEmpty(section.code)) { + code += section.code; + } } } - return isCodeEmpty(code) ? null : code; + return code; } function isCodeEmpty(code) {