From a3465476adfcfe26f0d0aadd01b126a7ec8cbb4e Mon Sep 17 00:00:00 2001 From: sethburkart123 Date: Wed, 19 Jun 2024 19:34:17 +1000 Subject: [PATCH] fix: icon only chnging on seqta pages --- src/SEQTA.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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