Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webkitRelativePath workaround for safari and allow nested directories #858

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

hanayik
Copy link
Collaborator

@hanayik hanayik commented Sep 11, 2024

This PR enables dcm2niix in Safari.

  • Safari strips webkitRelativePath when sending files to the web worker, so this property was empty and causing failures.
  • implemented workaround to get the webkitRelativePath prior to sending to the web worker. Also use name as fallback if needed
  • Now dcm2niix WASM works in Safari, Firefox, and Chrome. Multiple nested dicom directories are also now supported due to this webkitRelativePath fix.

@hanayik hanayik requested a review from neurolabusc September 11, 2024 13:14
@neurolabusc neurolabusc merged commit 382014a into development Sep 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants