[mirotalk] - fix typo

This commit is contained in:
Miroslav Pejic
2026-05-03 16:57:16 +02:00
parent a849ecb905
commit 16c8b16f6f
+3 -5
View File
@@ -24,11 +24,9 @@ function renderRoomTemplate(templateId, { text = {}, html = {}, attrs = {} } = {
const key = element.getAttribute(name);
const value = attrs[key];
if (value === undefined || value === null) {
element.removeAttribute(attrName);
} else {
element.setAttribute(attrName, value);
}
value === undefined || value === null
? element.removeAttribute(attrName)
: element.setAttribute(attrName, value);
element.removeAttribute(name);
});