feat(browser-extension): minor code improvement about use class list instead class name

This commit is contained in:
wanhose 2023-06-10 20:07:33 +02:00
parent a2ede05c9b
commit dcc9dfef21

View File

@ -133,7 +133,7 @@ function match(node, skipMatch) {
if (node.hasAttributes()) { if (node.hasAttributes()) {
return ( return (
// 2023-06-10: twitch.tv temporary fix // 2023-06-10: twitch.tv temporary fix
node.className !== 'chat-line__message' && !node.classList.contains('chat-line__message') &&
// ... // ...
!node.getAttribute('data-cookie-dialog-monster') && !node.getAttribute('data-cookie-dialog-monster') &&
isInViewport(node) && isInViewport(node) &&