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:
+5
-9
@@ -2392,16 +2392,12 @@ export function SendNewsPage() {
|
|||||||
}, 8)
|
}, 8)
|
||||||
}
|
}
|
||||||
|
|
||||||
let MenuItemMutation = false
|
|
||||||
async function CheckForMenuList() {
|
async function CheckForMenuList() {
|
||||||
if (!MenuItemMutation) {
|
try {
|
||||||
try {
|
if (document.getElementById('menu')?.firstChild) {
|
||||||
if (document.getElementById('menu')?.firstChild) {
|
ObserveMenuItemPosition()
|
||||||
ObserveMenuItemPosition()
|
|
||||||
MenuItemMutation = true
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user