fixup! Add: isCodeEmpty
This commit is contained in:
parent
1cf6008514
commit
583ca31d97
|
@ -301,10 +301,12 @@ const styleManager = (() => {
|
|||
let code = '';
|
||||
for (const section of data.sections) {
|
||||
if (urlMatchSection(url, section)) {
|
||||
if (!isCodeEmpty(section.code)) {
|
||||
code += section.code;
|
||||
}
|
||||
}
|
||||
return isCodeEmpty(code) ? null : code;
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
function isCodeEmpty(code) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user