(blob: Blob, fileName: string)
| 313 | } |
| 314 | |
| 315 | function downloadBlob(blob: Blob, fileName: string) { |
| 316 | const url = URL.createObjectURL(blob); |
| 317 | const link = document.createElement("a"); |
| 318 | link.href = url; |
| 319 | link.download = fileName; |
| 320 | document.body.appendChild(link); |
| 321 | link.click(); |
| 322 | link.remove(); |
| 323 | window.setTimeout(() => URL.revokeObjectURL(url), 30_000); |
| 324 | } |
| 325 | |
| 326 | function captureFileBaseName( |
| 327 | simulator: SimulatorMetadata, |
no test coverage detected