|
@@ -691,7 +691,7 @@
|
|
|
AddStyle(css) {
|
|
AddStyle(css) {
|
|
|
if (document.head) {
|
|
if (document.head) {
|
|
|
const style = document.createElement('style');
|
|
const style = document.createElement('style');
|
|
|
- style.innerHTML = css;
|
|
|
|
|
|
|
+ style.textContent = css;
|
|
|
document.head.appendChild(style);
|
|
document.head.appendChild(style);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -784,7 +784,7 @@
|
|
|
function inject(code) {
|
|
function inject(code) {
|
|
|
const script = document.createElement('script');
|
|
const script = document.createElement('script');
|
|
|
const doc = document.body || document.documentElement;
|
|
const doc = document.body || document.documentElement;
|
|
|
- script.innerHTML = code;
|
|
|
|
|
|
|
+ script.textContent = code;
|
|
|
doc.appendChild(script);
|
|
doc.appendChild(script);
|
|
|
try {
|
|
try {
|
|
|
doc.removeChild(script);
|
|
doc.removeChild(script);
|