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.37k stars 82 forks source link

Crash if you pass a blob without a `.stream()` method to fileSave on fs-access browers #105

Closed tmcw closed 2 years ago

tmcw commented 2 years ago

Problem line:

https://github.com/GoogleChromeLabs/browser-fs-access/blob/b3be8c6bd93d7be3388aed3ca77da258283494ba/src/fs-access/file-save.mjs#L94

This bug is relatively simple: blob isn't defined. This line should probably reference blobOrResponse.

tomayac commented 2 years ago

Fixed via https://github.com/GoogleChromeLabs/browser-fs-access/commit/9d88346ff973ed773879aebe1807275944154a18.

tomayac commented 2 years ago

Just released v0.28.1 that includes this fix.