mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
fix(home): sidebar button sometimes not selecting
This commit is contained in:
1 parent
e2176ea2fa
commit
d1a876ff22
1 file changed
+3
-3
+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