()
| 191 | const initialHeadNodes = new Set<Node>(Array.from(document.head.childNodes)) |
| 192 | |
| 193 | function resetPageErrorHandlers() { |
| 194 | pageErrorHandlers.forEach(({ error, rejection }) => { |
| 195 | window.removeEventListener('error', error) |
| 196 | window.removeEventListener('unhandledrejection', rejection) |
| 197 | }) |
| 198 | pageErrorHandlers.clear() |
| 199 | } |
| 200 | |
| 201 | function resetHead() { |
| 202 | Array.from(document.head.childNodes).forEach(node => { |