mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
replace innerHTML to safer textContent where possible
This commit is contained in:
parent
9b09d369d9
commit
c4cc50ca39
8 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue