summaryrefslogtreecommitdiffstats
path: root/assets/js/community.js
diff options
context:
space:
mode:
authormeow <woem>2022-04-20 13:40:30 +0300
committermeow <woem>2022-04-25 12:54:30 +0300
commitc4cc50ca39a32e9beeb29b6fb7b669adb6b9df98 (patch)
tree37d3ed6a02df413e8eb9cf5d35f1893d97f1aadb /assets/js/community.js
parent9b09d369d90006df847119eb42b9eabd877d0e7b (diff)
downloadinvidious-c4cc50ca39a32e9beeb29b6fb7b669adb6b9df98.tar.gz
invidious-c4cc50ca39a32e9beeb29b6fb7b669adb6b9df98.tar.bz2
invidious-c4cc50ca39a32e9beeb29b6fb7b669adb6b9df98.zip
replace innerHTML to safer textContent where possible
Diffstat (limited to 'assets/js/community.js')
-rw-r--r--assets/js/community.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/community.js b/assets/js/community.js
index 0f1d5d9c..58caa71e 100644
--- a/assets/js/community.js
+++ b/assets/js/community.js
@@ -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) {