emoji优化

This commit is contained in:
unknown
2022-05-13 17:34:32 +08:00
parent 77eae3ab93
commit 66551db71b

View File

@ -96,7 +96,11 @@ const ChatInput = ((props) => {
for(var i=0; i<allElements.length;i++){
let el = allElements[i]
if(el.tagName!="IMG"){
if(!el.hasAttribute('emoji')){
el.removeAttribute('style')
}else if(el.getAttribute('emoji')!='emoji'){
el.removeAttribute('style')
}
el.removeAttribute('className')
el.removeAttribute('class')
}