jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.07k stars 218 forks source link

Get rid of TypeError #272

Closed TJKoury closed 5 years ago

TJKoury commented 5 years ago

The example omits the options object, and other backend types allow it as well. Currently the error Cannot read property 'storeName' of undefined is thrown if the options object is missing. Providing a default value prevents this.

jvilk commented 5 years ago

Thanks!