mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
replace innerHTML to safer textContent where possible
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
var watched_data = JSON.parse(document.getElementById('watched_data').innerHTML);
|
||||
var watched_data = JSON.parse(document.getElementById('watched_data').textContent);
|
||||
|
||||
function mark_watched(target) {
|
||||
var tile = target.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
|
Reference in New Issue
Block a user