mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
refactor: Simplify CheckForMenuList function in SEQTA.ts
This commit is contained in:
+1
-5
@@ -2392,16 +2392,12 @@ export function SendNewsPage() {
|
||||
}, 8)
|
||||
}
|
||||
|
||||
let MenuItemMutation = false
|
||||
async function CheckForMenuList() {
|
||||
if (!MenuItemMutation) {
|
||||
try {
|
||||
if (document.getElementById('menu')?.firstChild) {
|
||||
ObserveMenuItemPosition()
|
||||
MenuItemMutation = true
|
||||
}
|
||||
} catch (error) {
|
||||
return
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user