File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -436,11 +436,11 @@ export default class Runtime extends Manager {
436
436
chrome . tabs . executeScript ( sender . tabId , {
437
437
frameId : sender . frameId ,
438
438
code : `(function(){
439
- let temp = document.createElement(' script' );
439
+ let temp = document.createElementNS("http://www.w3.org/1999/xhtml", " script" );
440
440
temp.setAttribute('type', 'text/javascript');
441
441
temp.innerHTML = "${ injectedSource } ";
442
442
temp.className = "injected-js";
443
- document.documentElement.appendChild(temp)
443
+ document.documentElement.appendChild(temp);
444
444
temp.remove();
445
445
}())` ,
446
446
runAt : "document_start" ,
@@ -475,11 +475,11 @@ export default class Runtime extends Manager {
475
475
chrome . tabs . executeScript ( sender . tabId ! , {
476
476
frameId : sender . frameId ,
477
477
code : `(function(){
478
- let temp = document.createElement(' script' );
478
+ let temp = document.createElementNS("http://www.w3.org/1999/xhtml", " script" );
479
479
temp.setAttribute('type', 'text/javascript');
480
480
temp.innerHTML = "${ script . code } ";
481
481
temp.className = "injected-js";
482
- document.documentElement.appendChild(temp)
482
+ document.documentElement.appendChild(temp);
483
483
temp.remove();
484
484
}())` ,
485
485
runAt,
You can’t perform that action at this time.
0 commit comments