| LCOV - code coverage report | ||||||||||||||||||
|
||||||||||||||||||
Line data Source code 1 : /** Starts a browser download of `blob` under `filename`. */ 2 0 : export function downloadBlob(filename: string, blob: Blob): void { 3 0 : const url = URL.createObjectURL(blob) 4 0 : const link = document.createElement('a') 5 0 : link.href = url 6 0 : link.download = filename 7 0 : link.style.display = 'none' 8 0 : document.body.appendChild(link) 9 0 : link.click() 10 0 : document.body.removeChild(link) 11 0 : queueMicrotask(() => URL.revokeObjectURL(url)) 12 : } |
| Generated by: LCOV version 2.0-1 |