fix: education perfect causes memory leak in some cases

This commit is contained in:
SethBurkart123
2024-02-07 16:04:30 +11:00
parent 54c807f716
commit ccbb7d58a0
+3 -1
View File
@@ -48,11 +48,13 @@ var MenuItemMutation = false
var NonSEQTAPage = false
var IsSEQTAPage = false
// This check is placed outside of the document load event due to issues with EP (https://github.com/BetterSEQTA/BetterSEQTA-Plus/issues/84)
const hasSEQTAText = document.childNodes[1].textContent?.includes('Copyright (c) SEQTA Software')
document.addEventListener(
'load',
async function () {
CheckForMenuList()
const hasSEQTAText = document.childNodes[1].textContent?.includes('Copyright (c) SEQTA Software')
const hasSEQTATitle = document.title.includes('SEQTA Learn')
if (hasSEQTAText && hasSEQTATitle && !IsSEQTAPage) {