diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 2ead35dd..9f458346 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -56,6 +56,8 @@ async function init() { documentLoadStyle.textContent = documentLoadCSS document.head.appendChild(documentLoadStyle) + const icon = document.querySelector('link[rel*="icon"]')! as HTMLLinkElement + icon.href = icon48 enableCurrentTheme() try { @@ -1950,9 +1952,6 @@ export async function loadHomePage() { main!.innerHTML = '' } - const icon = document.querySelector('link[rel*="icon"]')! as HTMLLinkElement - icon.href = icon48 - currentSelectedDate = new Date() // Creates the root of the home page added to the main div