diff --git a/app/stage/protyle/js/protyle-html.js b/app/stage/protyle/js/protyle-html.js index d85d7b0ab..38d7b26ad 100644 --- a/app/stage/protyle/js/protyle-html.js +++ b/app/stage/protyle/js/protyle-html.js @@ -20,13 +20,16 @@ class ProtyleHtml extends HTMLElement { el.innerHTML = dataContent const scripts = el.getElementsByTagName('script') let fatalHTML = '' - for (let i = 0; i < scripts.length; i++) { - if (scripts[i].textContent.indexOf('document.write') > -1) { + for (const script of scripts) { + if (script.textContent.indexOf('document.write') > -1) { fatalHTML += `