Fix: remove unused if
This commit is contained in:
parent
6f5c051840
commit
2f79076faa
|
@ -56,9 +56,7 @@
|
|||
return NOP;
|
||||
}
|
||||
return API.styles.getSectionsByUrl(url, id).then(sections => {
|
||||
if (sections.cfg) {
|
||||
delete sections.cfg;
|
||||
}
|
||||
delete sections.cfg;
|
||||
const tasks = [];
|
||||
for (const section of Object.values(sections)) {
|
||||
const styleId = section.id;
|
||||
|
|
|
@ -187,9 +187,7 @@
|
|||
if (!hasStyles && isDisabled || matchUrl === request.url) break;
|
||||
matchUrl = request.url;
|
||||
API.styles.getSectionsByUrl(matchUrl).then(sections => {
|
||||
if (sections.cfg) {
|
||||
delete sections.cfg;
|
||||
}
|
||||
delete sections.cfg;
|
||||
hasStyles = true;
|
||||
styleInjector.replace(sections);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user