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