(url)
| 895 | } |
| 896 | |
| 897 | function openResource(url) { |
| 898 | // open url in new tab |
| 899 | var a = document.createElement("a"); |
| 900 | a.href = url; |
| 901 | a.setAttribute("target", "_blank"); |
| 902 | document.body.appendChild(a); |
| 903 | a.click(); |
| 904 | a.remove(); |
| 905 | } |
| 906 | |
| 907 | function forceDownload(blob, filename, extension) { |
| 908 | // ref: https://stackoverflow.com/questions/49474775/chrome-65-blocks-cross-origin-a-download-client-side-workaround-to-force-down |
no test coverage detected