(win, url, opt_cb)
| 66 | * @param {function()=} opt_cb |
| 67 | */ |
| 68 | export function writeScript(win, url, opt_cb) { |
| 69 | win.document.write( |
| 70 | // eslint-disable-next-line no-useless-concat |
| 71 | '<' + 'script src="' + encodeURI(url) + '"><' + '/script>' |
| 72 | ); |
| 73 | if (opt_cb) { |
| 74 | executeAfterWriteScript(win, opt_cb); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Asynchronously load the given script URL. |
no test coverage detected