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: fix https://github.com/siyuan-note/siyuan/issues/6281
Vanessaad2812f51b6a
diff --git a/app/appearance/emojis/twitter-emoji.js b/app/appearance/emojis/twitter-emoji.jsindex ccbe44f7e1..998b6eefde 100644--- a/app/appearance/emojis/twitter-emoji.js+++ b/app/appearance/emojis/twitter-emoji.js@@ -1,4 +1,4 @@-document.body.insertAdjacentHTML('afterbegin', `<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">+document.body.insertAdjacentHTML('afterbegin', `<svg id="emojiScriptSvg" aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><symbol id="icon-1f0cf" viewBox="0 0 32 32"><path fill="#e6e7e8" style="fill: var(--color1, #e6e7e8)" d="M28.444 28.444c0 1.964-1.592 3.556-3.556 3.556h-17.778c-1.964 0-3.556-1.592-3.556-3.556v-24.889c0-1.964 1.592-3.556 3.556-3.556h17.778c1.964 0 3.556 1.592 3.556 3.556v24.889z"></path>diff --git a/app/src/util/assets.ts b/app/src/util/assets.tsindex 05c02fc5d2..7487bb80ed 100644--- a/app/src/util/assets.ts+++ b/app/src/util/assets.ts@@ -73,7 +73,9 @@ export const loadAssets = (data: IAppearance) => {if (iconDefaultScriptElement) {iconDefaultScriptElement.remove();while (document.body.firstElementChild.tagName === "svg") {- document.body.firstElementChild.remove();+ if (document.body.firstElementChild.id !== "emojiScriptSvg") {+ document.body.firstElementChild.remove();+ }}loadThirdIcon(iconURL, data);} else {@@ -105,7 +107,7 @@ export const initAssets = () => {const emojiElement = document.getElementById("emojiScript");const loadingElement = document.getElementById("loading");if (!emojiElement && !window.siyuan.config.appearance.nativeEmoji && !isMobile()) {- addScript("/appearance/emojis/twitter-emoji.js?v=1.0.0", "emojiScript").then(() => {+ addScript("/appearance/emojis/twitter-emoji.js?v=1.0.1", "emojiScript").then(() => {if (loadingElement) {loadingElement.remove();}