| 3 | import {b64toBlob} from "../utils"; |
| 4 | |
| 5 | export class DownloadHandler implements CommandHandler { |
| 6 | accept_command: string[] = ['download']; |
| 7 | |
| 8 | constructor() { |
| 9 | } |
| 10 | |
| 11 | handle_message(msg: Command) { |
| 12 | let blob = b64toBlob(msg.spec.content); |
| 13 | saveAs(blob, msg.spec.name, {}, false); |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…