mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-06 10:44:03 +00:00
replace innerHTML to safer textContent where possible
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
var community_data = JSON.parse(document.getElementById('community_data').innerHTML);
|
||||
var community_data = JSON.parse(document.getElementById('community_data').textContent);
|
||||
|
||||
String.prototype.supplant = function (o) {
|
||||
return this.replace(/{([^{}]*)}/g, function (a, b) {
|
||||
|
Reference in New Issue
Block a user