mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
This commit is contained in:
parent
ad2812f51b
commit
bfa3e66b16
1 changed files with 6 additions and 3 deletions
|
|
@ -72,9 +72,12 @@ export const loadAssets = (data: IAppearance) => {
|
|||
const iconURL = `/appearance/icons/${["ant", "material"].includes(data.icon) ? data.icon : "material"}/icon.js?v=${Constants.SIYUAN_VERSION}`;
|
||||
if (iconDefaultScriptElement) {
|
||||
iconDefaultScriptElement.remove();
|
||||
while (document.body.firstElementChild.tagName === "svg") {
|
||||
if (document.body.firstElementChild.id !== "emojiScriptSvg") {
|
||||
document.body.firstElementChild.remove();
|
||||
let svgElement = document.body.firstElementChild
|
||||
while (svgElement.tagName === "svg") {
|
||||
const currentSvgElement = svgElement;
|
||||
svgElement = svgElement.nextElementSibling;
|
||||
if (currentSvgElement.id !== "emojiScriptSvg") {
|
||||
currentSvgElement.remove();
|
||||
}
|
||||
}
|
||||
loadThirdIcon(iconURL, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue