Skip to content

Commit

Permalink
ENH: App download output
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jul 27, 2023
1 parent 55da53c commit d1d98b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/conversion-controller.ts
Expand Up @@ -71,8 +71,8 @@ class ConversionController {
outputOutputDownload.addEventListener('click', (event) => {
event.preventDefault()
event.stopPropagation()
if (model.outputs.has("output")) {
globalThis.downloadFile(model.outputs.get("output"), "output.bin")
if (model.outputVolume) {
globalThis.downloadFile(model.outputVolume, `${model.inputFileName}.${model.outputFormat}`)
}
})

Expand All @@ -92,7 +92,7 @@ class ConversionController {
const t0 = performance.now()

const { webWorker, image } = await readImageArrayBuffer(this.webWorker,
model.inputVolume,
model.inputVolume.slice(),
'volume.aim'
)
this.webWorker = webWorker
Expand Down

0 comments on commit d1d98b8

Please sign in to comment.