From d1a876ff229cdf0be4fafcfc3758fe13b08cee02 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Mon, 2 Dec 2024 12:25:14 +1100 Subject: [PATCH] fix(home): sidebar button sometimes not selecting --- src/SEQTA.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 965db0b..17c27f7 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2158,13 +2158,13 @@ async function AddCustomShortcutsToPage() { export async function loadHomePage() { console.info('[BetterSEQTA+] Started Loading Home Page') + // Wait for the DOM to finish clearing + await delay(10) + document.title = 'Home ― SEQTA Learn' const element = document.querySelector('[data-key=home]') element?.classList.add('active') - // Wait for the DOM to finish clearing - await delay(10) - // Cache DOM queries const main = document.getElementById('main') if (!main) {