File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1131,7 +1131,7 @@ async function injectCode(code) {
11311131 // check if code already loaded - to avoid duplication
11321132 const scripts = document . getElementsByTagName ( 'script' ) ;
11331133 for ( let n = 0 ; n < scripts . length ; ++ n ) {
1134- if ( scripts [ n ] . innerHTML === code )
1134+ if ( scripts [ n ] . innerText === code )
11351135 return true ;
11361136 }
11371137
@@ -1147,7 +1147,7 @@ async function injectCode(code) {
11471147 return promise . then ( ( ) => {
11481148 const element = document . createElement ( 'script' ) ;
11491149 element . setAttribute ( 'type' , is_mjs ? 'module' : 'text/javascript' ) ;
1150- element . innerHTML = code ;
1150+ element . innerText = code ;
11511151 document . head . appendChild ( element ) ;
11521152 // while onload event not fired, just postpone resolve
11531153 return isBatchMode ( ) ? true : postponePromise ( true , 10 ) ;
You can’t perform that action at this time.
0 commit comments