refactor: Simplify CheckForMenuList function in SEQTA.ts

This commit is contained in:
sethburkart123
2024-06-19 18:22:56 +10:00
parent 87f4fca221
commit 2007823202
+5 -9
View File
@@ -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
try {
if (document.getElementById('menu')?.firstChild) {
ObserveMenuItemPosition()
}
} catch (error) {
return;
}
}