[Invidio Embed]fix: Use of attributes’ nodeValue attribute is deprecated. Use value instead

This commit is contained in:
Jesús 2019-12-30 16:32:39 -05:00
parent 834186511c
commit 87a1682aab
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -41,7 +41,7 @@ for (i = 0; i < risky_tags.length; i++) {
index = 0;
risky_attributes = risky_elements[j].attributes;
for (k = 0; k < risky_attributes.length; k++) {
risky_node = risky_attributes[k].nodeValue;
risky_node = risky_attributes[k].value;
if ((risky_node.indexOf("youtube.com") >= 0) || (risky_node.indexOf("ytimg.com") >= 0) || (risky_node.indexOf("youtube-nocookie.com") >= 0)) {
risky_elements[j].style.display = "none";
if (risky_node.indexOf("/v/") >= 0) {