mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix(home): sidebar button sometimes not selecting
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user