GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

removed usage of Response.type #101

Closed tclangv closed 2 years ago

tclangv commented 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.

tomayac commented 2 years ago

Thanks, this looks like an oversight. The headers are the correct way to identify the type of the body of course.