An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/5066 addIcons
Vanessab24224f7c4e8
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex cb63521b2e..c3621657fa 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -61,7 +61,7 @@ export class Plugin {}public addIcons(svg: string) {- document.body.insertAdjacentHTML("afterbegin", `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">+ document.body.insertAdjacentHTML("afterbegin", `<svg data-name="${this.name}" style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"><defs>${svg}</defs></svg>`);}diff --git a/app/src/util/assets.ts b/app/src/util/assets.tsindex d0160db150..33aee63334 100644--- a/app/src/util/assets.ts+++ b/app/src/util/assets.ts@@ -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();}}