mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:49:59 +02:00
Refactor ZenThemesImporter to skip disabled themes when writing the stylesheet
This commit is contained in:
parent
03514248e5
commit
4d8d109e78
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ var gZenStylesheetManager = {
|
|||
async writeStylesheet(path, themes) {
|
||||
let content = kZenStylesheetThemeHeader;
|
||||
for (let theme of themes) {
|
||||
if (theme.disabled) {
|
||||
continue;
|
||||
}
|
||||
content += this.getThemeCSS(theme);
|
||||
}
|
||||
content += kenStylesheetFooter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue