From 4b42da106a0b101272343c80f83b8da6a5f61aaa Mon Sep 17 00:00:00 2001 From: Jonathan Dawson Date: Tue, 12 Nov 2019 12:53:24 -0600 Subject: [PATCH] revert the second mutation observer back to the one in the master --- inject.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inject.js b/inject.js index 06fb148..54fc4c3 100644 --- a/inject.js +++ b/inject.js @@ -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) {