Closed tclangv closed 2 years ago
According to https://developer.mozilla.org/en-US/docs/Web/API/Response/type the Response.type has nothing to do with mimeTypes, and using it in showSaveFilePicker() produces an error (at least in chrome), so I removed the usages.
Thanks, this looks like an oversight. The headers are the correct way to identify the type of the body of course.
According to https://developer.mozilla.org/en-US/docs/Web/API/Response/type the Response.type has nothing to do with mimeTypes, and using it in showSaveFilePicker() produces an error (at least in chrome), so I removed the usages.