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.06k stars 216 forks source link

when IndexedDB is unavailable, catch the resulting exception so that … #285

Closed db48x closed 4 years ago

db48x commented 4 years ago

…the rest of BrowserFS still works

If it doesn't catch the exception, later scripts will have errors because none of BrowserFS is available.

db48x commented 4 years ago

Accessing indexeddb causes an exception, at least in Firefox when the page is in an iframe embedded in a third-party domain.