aboutsummaryrefslogtreecommitdiffstats
path: root/background.js
diff options
context:
space:
mode:
authorTeddy Wing2020-05-05 02:40:41 +0200
committerTeddy Wing2020-05-05 02:40:41 +0200
commitc64bbaca4dc9977eae5b0068ee580b96ba057cb2 (patch)
treeebc65cdbd0fd39c006f6d547f81fa0fd3ada904c /background.js
parentc5eb7ee015af975d408d7814e34a3b8e2c963e75 (diff)
downloadnetflix-immersive-c64bbaca4dc9977eae5b0068ee580b96ba057cb2.tar.bz2
Use `classList.remove()`
Turns out `classList` isn't an array, it's a `DOMTokenList`, and it doesn't have an `includes()` method. Instead, use `contains()`. `DOMTokenList` also doesn't have a `filter()`, but we can remove the `.postplay` class much easier with the `remove()` method. Turns out I didn't need to worry about a `childList` mutation observer as I previously thought. This version works. Now that the class is removed, the video no longer reduces to the small frame.
Diffstat (limited to 'background.js')
0 files changed, 0 insertions, 0 deletions