mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +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 NonSEQTAPage = false
|
||||||
var IsSEQTAPage = 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(
|
document.addEventListener(
|
||||||
'load',
|
'load',
|
||||||
async function () {
|
async function () {
|
||||||
CheckForMenuList()
|
CheckForMenuList()
|
||||||
const hasSEQTAText = document.childNodes[1].textContent?.includes('Copyright (c) SEQTA Software')
|
|
||||||
const hasSEQTATitle = document.title.includes('SEQTA Learn')
|
const hasSEQTATitle = document.title.includes('SEQTA Learn')
|
||||||
|
|
||||||
if (hasSEQTAText && hasSEQTATitle && !IsSEQTAPage) {
|
if (hasSEQTAText && hasSEQTATitle && !IsSEQTAPage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user