mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
e35b203201
commit
aee4c64006
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue