(root)
| 122 | * @param {HTMLElement} root |
| 123 | */ |
| 124 | export const reInsertScripts = async (root) => { |
| 125 | const scripts = root.querySelectorAll("script"); |
| 126 | |
| 127 | if (!scripts.length) return []; |
| 128 | |
| 129 | const iterarot = scriptIterator(Array.from(scripts)); |
| 130 | const result = []; |
| 131 | |
| 132 | for await (const script of iterarot) { |
| 133 | result.push(script); |
| 134 | } |
| 135 | |
| 136 | return result; |
| 137 | }; |
no outgoing calls
no test coverage detected