Vanessa 2025-08-21 20:33:56 +08:00
parent e35b203201
commit aee4c64006

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.insertAdjacentHTML("beforeend", svg);
svgElement.insertAdjacentHTML("afterbegin", svg);
} else {
const lastSvgElement = document.querySelector("body > svg:last-of-type");
if (lastSvgElement) {