[mirotalk] - fix typo
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user