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

View File

@ -7,6 +7,7 @@ if (document.readyState && document.readyState !== 'loading') {
function kagiSummarizeOnLoad() {
console.log('configuring kagi observer');
var observer = new MutationObserver(function(mutations) {
console.log('kagi observer triggered');
mutations.forEach(function(mutation) {
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
console.log(mutation.addedNodes);
@ -14,7 +15,7 @@ function kagiSummarizeOnLoad() {
return el.classList.contains('kagi-summary');
});
if (hasClass) {
console.log('kagi observer triggered');
console.log('observer found kagi class');
}
}
});