Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15453

Vanessa1c3ebf7f759c
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index b2a6ba0aa7..7664227171 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -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) {