mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-12 21:27:45 +02:00
replace innerHTML to safer textContent where possible
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
var subscribe_data = JSON.parse(document.getElementById('subscribe_data').innerHTML);
|
||||
var subscribe_data = JSON.parse(document.getElementById('subscribe_data').textContent);
|
||||
|
||||
var subscribe_button = document.getElementById('subscribe');
|
||||
subscribe_button.parentNode['action'] = 'javascript:void(0)';
|
||||
|
Reference in New Issue
Block a user