This commit is contained in:
Vanessa 2023-05-31 09:37:09 +08:00
parent b0322b589d
commit b24224f7c4
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ export const loadAssets = (data: IAppearance) => {
while (svgElement.tagName === "svg") {
const currentSvgElement = svgElement;
svgElement = svgElement.nextElementSibling;
if (currentSvgElement.id !== "emojiScriptSvg") {
if (currentSvgElement.id !== "emojiScriptSvg" && !currentSvgElement.getAttribute("data-name")) {
currentSvgElement.remove();
}
}