mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
check if aria-hidden exists before seeing if its value is false.
This commit is contained in:
@@ -502,7 +502,8 @@ function initializeNow(document) {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "attributes":
|
case "attributes":
|
||||||
if (mutation.target.attributes["aria-hidden"].value == "false") {
|
if (mutation.target.attributes["aria-hidden"] &&
|
||||||
|
mutation.target.attributes["aria-hidden"].value == "false") {
|
||||||
var flattenedNodes = getShadow(document.body);
|
var flattenedNodes = getShadow(document.body);
|
||||||
var node = flattenedNodes.filter(x => x.tagName == "VIDEO")[0];
|
var node = flattenedNodes.filter(x => x.tagName == "VIDEO")[0];
|
||||||
if (node) {
|
if (node) {
|
||||||
|
Reference in New Issue
Block a user