mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 06:32:33 +01:00
This commit is contained in:
parent
677eca9b58
commit
ad2812f51b
2 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue