mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 04:29:58 +02:00
Refactor ZenThemesImporter to improve theme handling and preferences management
This commit is contained in:
parent
ef5da75e5e
commit
9ae715276c
1 changed files with 38 additions and 38 deletions
|
@ -172,8 +172,7 @@ var gZenThemeImporter = new (class {
|
|||
}
|
||||
|
||||
writeToDom(themesWithPreferences) {
|
||||
const browser = ZenThemesCommon.currentBrowser;
|
||||
|
||||
for (const browser of ZenThemesCommon.browsers) {
|
||||
for (const { enabled, preferences, name } of themesWithPreferences) {
|
||||
const sanitizedName = `theme-${name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '')}`;
|
||||
|
||||
|
@ -231,6 +230,7 @@ var gZenThemeImporter = new (class {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async writeStylesheet(themeList) {
|
||||
const themes = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue