Function
generateOutputFile
(extension, blob, onDone, context)
Source from the content-addressed store, hash-verified
| 2 | const generateOutputFileFileSystem = require('../io/generateOutputFileFileSystem') |
| 3 | |
| 4 | function generateOutputFile (extension, blob, onDone, context) { |
| 5 | try { |
| 6 | generateOutputFileFileSystem(extension, blob, onDone.bind(context)) |
| 7 | } catch (e) { |
| 8 | generateOutputFileBlobUrl(extension, blob, onDone.bind(context)) |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | module.exports = { |
| 13 | generateOutputFile |
Tested by
no test coverage detected