(blob: Blob, filename: string)
| 3 | import type { TrackItem } from './TrackItem'; |
| 4 | |
| 5 | function downloadBlob(blob: Blob, filename: string): void { |
| 6 | const a = document.createElement('a'); |
| 7 | a.download = filename; |
| 8 | a.href = URL.createObjectURL(blob); |
| 9 | document.body.appendChild(a); |
| 10 | a.click(); |
| 11 | document.body.removeChild(a); |
| 12 | URL.revokeObjectURL(a.href); |
| 13 | } |
| 14 | |
| 15 | export function exportGp7(api: alphaTab.AlphaTabApi): void { |
| 16 | if (!api.score) { |
no test coverage detected