diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 70e05b5b..02fb29fe 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -50,16 +50,6 @@ async function init() { documentLoadStyle.textContent = documentLoadCSS; document.head.appendChild(documentLoadStyle); - function replaceIcons() { - document - .querySelectorAll('link[rel*="icon"]') - .forEach((link) => { - if (link.href !== icon48) { - link.href = icon48; - } - }); - } - replaceIcons(); const observer = new MutationObserver(() => { @@ -73,7 +63,6 @@ async function init() { attributeFilter: ["href", "rel"], }); - try { await initializeSettingsState(); @@ -102,3 +91,13 @@ async function init() { } } } + +function replaceIcons() { + document + .querySelectorAll('link[rel*="icon"]') + .forEach((link) => { + if (link.href !== icon48) { + link.href = icon48; + } + }); +} \ No newline at end of file