mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 05:09:57 +02:00
refactor(zen-settings): add theme- prefix
This commit is contained in:
parent
9c29cf23e7
commit
5a183e161e
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ var gZenThemeImporter = new (class {
|
||||||
|
|
||||||
for (const theme of Object.values(await this.getThemes())) {
|
for (const theme of Object.values(await this.getThemes())) {
|
||||||
const { preferences, areOldPreferences } = await this._getThemePreferences(theme);
|
const { preferences, areOldPreferences } = await this._getThemePreferences(theme);
|
||||||
const sanitizedName = theme.name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '');
|
const sanitizedName = `theme-${theme.name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '')}`;
|
||||||
|
|
||||||
if (!theme.enabled) {
|
if (!theme.enabled) {
|
||||||
const element = browser.document.getElementById(sanitizedName);
|
const element = browser.document.getElementById(sanitizedName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue