diff --git a/src/assets/views/scripts/ExternalLinkIcons.svelte b/src/assets/views/scripts/ExternalLinkIcons.svelte index 62f0a81..e21205e 100644 --- a/src/assets/views/scripts/ExternalLinkIcons.svelte +++ b/src/assets/views/scripts/ExternalLinkIcons.svelte @@ -11,6 +11,7 @@ document.querySelectorAll('a[target="_blank"]').forEach(el => { if (!el.classList.contains('no-icon')) { + el.classList.add('no-icon'); el.appendChild(iconElement.cloneNode(true)); } }); @@ -18,6 +19,13 @@ onMount(() => { addExternalLinkIcons(); + + new MutationObserver(() => { + addExternalLinkIcons(); + }).observe(document.body, { + childList: true, + subtree: true, + }); });