Vanessa 2025-08-20 16:58:10 +08:00
parent 516d9aa52a
commit 1c3ebf7f75

View file

@ -157,7 +157,7 @@ export class Plugin {
public addIcons(svg: string) {
const svgElement = document.querySelector(`svg[data-name="${this.name}"] defs`);
if (svgElement) {
svgElement.innerHTML = svg;
svgElement.insertAdjacentHTML("beforeend", svg);
} else {
const lastSvgElement = document.querySelector("body > svg:last-of-type");
if (lastSvgElement) {