revert the second mutation observer back to the one in the master

This commit is contained in:
Jonathan Dawson
2019-11-12 12:53:24 -06:00
parent ee3b0ae19e
commit 4b42da106a

View File

@@ -443,7 +443,7 @@
}
}
function mutationCallback(mutations) {
var observer = new MutationObserver(function(mutations) {
// Process the DOM nodes lazily
requestIdleCallback(_ => {
mutations.forEach(function(mutation) {
@@ -459,8 +459,7 @@
});
});
}, {timeout: 1000});
}
var observer = new MutationObserver(mutationCallback);
});
observer.observe(document, { childList: true, subtree: true });
if (tc.settings.audioBoolean) {