appThemeClass is redundant

This commit is contained in:
zadam
2019-02-03 15:35:37 +01:00
parent bad7b84993
commit 6a67cdd5af
2 changed files with 2 additions and 5 deletions

View File

@@ -48,11 +48,9 @@ async function getUserThemes() {
const ret = [];
for (const note of notes) {
let value;
let value = note.getLabelValue('appTheme');
if (await note.hasLabel('appThemeClass')) {
value = await note.getLabelValue('appThemeClass');
} else {
if (!value) {
value = note.title.toLowerCase().replace(/[^a-z0-9]/gi, '-');
}