fix(home): sidebar button sometimes not selecting

This commit is contained in:
SethBurkart123
2024-12-02 12:25:14 +11:00
parent e2176ea2fa
commit d1a876ff22
+3 -3
View File
@@ -2158,13 +2158,13 @@ async function AddCustomShortcutsToPage() {
export async function loadHomePage() { export async function loadHomePage() {
console.info('[BetterSEQTA+] Started Loading Home Page') console.info('[BetterSEQTA+] Started Loading Home Page')
// Wait for the DOM to finish clearing
await delay(10)
document.title = 'Home ― SEQTA Learn' document.title = 'Home ― SEQTA Learn'
const element = document.querySelector('[data-key=home]') const element = document.querySelector('[data-key=home]')
element?.classList.add('active') element?.classList.add('active')
// Wait for the DOM to finish clearing
await delay(10)
// Cache DOM queries // Cache DOM queries
const main = document.getElementById('main') const main = document.getElementById('main')
if (!main) { if (!main) {