fix: correct summary card label and skip MutationObserver on html/body

This commit is contained in:
Usman Baig
2026-03-12 17:02:52 +01:00
parent 9179e058f7
commit 1f64bec46d
2 changed files with 13 additions and 14 deletions

View File

@@ -631,8 +631,9 @@
});
var mutOpts = { childList: true, attributes: true, characterData: true, subtree: true };
mutationObs.observe(target, mutOpts);
if (target.parentElement) {
mutationObs.observe(target.parentElement, mutOpts);
var parent = target.parentElement;
if (parent && parent.tagName !== 'HTML' && parent.tagName !== 'BODY') {
mutationObs.observe(parent, { childList: true });
}
} catch (ex) {
mutationObs = null;