mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix: education perfect causes memory leak in some cases
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user