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
+1 -5
View File
@@ -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) { } catch (error) {
return return;
}
} }
} }