Skip to content

Commit

Permalink
BUG: Fix sample data URL
Browse files Browse the repository at this point in the history
The Pinata pin was unintentionally dropped.
  • Loading branch information
thewtex committed Oct 20, 2023
1 parent 295addb commit de2669d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/conversion-load-sample-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default async function conversionLoadSampleInputs (model) {

const inputVolumeDescription = document.getElementById("input-volume-description")

const url = import.meta.env.DEV ? '/sample-data/AIMIOTestImage.AIM' : 'https://itk.mypinata.cloud/ipfs/QmPaZBXqb99fsKQi28tCuGpW1LgiVrBYKRimY28nA9mYgE'
const url = import.meta.env.DEV ? '/sample-data/AIMIOTestImage.AIM' : 'https://data.kitware.com/api/v1/file/653283f75be10c8fb6ed4efc/download'
const response = await fetch(url)
const contentLength = parseInt(response.headers.get('Content-Length'))
inputVolumeDescription.innerHTML = `Sample AIM volume size: <sl-format-bytes value="${contentLength}"></sl-format-bytes>`
Expand Down Expand Up @@ -43,4 +43,4 @@ export default async function conversionLoadSampleInputs (model) {
progressBar.value = 0

return model
}
}

0 comments on commit de2669d

Please sign in to comment.