diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index e5cba295b..85e1f1e8e 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -443,8 +443,8 @@ export class Background { if (tags) { let html = ""; const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"]; - tags.split(",").forEach((item, index) => { - if (!item) { + new Set(tags.split(",")).forEach((item, index) => { + if (!item.replace(/ /g, "")) { return; } html += `