This commit is contained in:
Rudis Muiznieks 2023-09-25 14:32:25 -05:00
parent 0ffb8ba3a0
commit 62a2773488
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ function kagiSummarizeOnLoad() {
var observer = new MutationObserver(function(mutations) { var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) { mutations.forEach(function(mutation) {
if (mutation.addedNodes && mutation.addedNodes.length > 0) { if (mutation.addedNodes && mutation.addedNodes.length > 0) {
console.log(mutation.addedNodes);
var hasClass = [].some.call(mutation.addedNodes, function(el) { var hasClass = [].some.call(mutation.addedNodes, function(el) {
return el.classList.contains('kagi-summary'); return el.classList.contains('kagi-summary');
}); });