mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
This commit is contained in:
parent
677eca9b58
commit
ad2812f51b
2 changed files with 5 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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