()
| 775 | script.async = true; |
| 776 | |
| 777 | function remove() { |
| 778 | if (script) { |
| 779 | // @ts-ignore |
| 780 | script.onload = script.onreadystatechange = script.onerror = null; |
| 781 | |
| 782 | if (script.parentNode) { |
| 783 | script.parentNode.removeChild(script); |
| 784 | } |
| 785 | |
| 786 | script = null; |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | const jsonp = api.query?.callback || 'axiosJsonpCallback' + uuid(); |
| 791 | const old = (window as any)[jsonp]; |
no test coverage detected