diff options
author | Teddy Wing | 2020-05-10 17:09:02 +0200 |
---|---|---|
committer | Teddy Wing | 2020-05-10 17:09:02 +0200 |
commit | 91a762e4f7f7286869852cc185e2a4cb5e512c42 (patch) | |
tree | 5724b10d6ed04bb2a86144adc51928d3c8ff56d7 | |
parent | 34da7a1c1b4525dd5ac5f940926f61997c2e54ab (diff) | |
download | netflix-immersive-91a762e4f7f7286869852cc185e2a4cb5e512c42.tar.bz2 |
fullscreen_credits: Remove `attributeOldValue` on mutation observer
Don't need the old attribute value. I had added this originally to be
able to print the values to the console for development. Now it's no
longer needed.
-rw-r--r-- | netflix-immersive.user.js | 3 | ||||
-rw-r--r-- | src/fullscreen_credits.ts | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js index 7800d96..5fdc7bd 100644 --- a/netflix-immersive.user.js +++ b/netflix-immersive.user.js @@ -98,8 +98,7 @@ function init_mutation_observer(player) { } }); observer.observe(player, { - attributeFilter: ['class'], - attributeOldValue: true + attributeFilter: ['class'] }); } // Initialise the mutation observer when the video player becomes available. diff --git a/src/fullscreen_credits.ts b/src/fullscreen_credits.ts index d8b25b9..f558221 100644 --- a/src/fullscreen_credits.ts +++ b/src/fullscreen_credits.ts @@ -47,8 +47,7 @@ function init_mutation_observer (player) { observer.observe( player, { - attributeFilter: ['class'], - attributeOldValue: true + attributeFilter: ['class'] } ); } |