ebidel / idb.filesystem.js

HTML5 Filesystem API polyfill using IndexedDB
https://www.npmjs.com/package/idb.filesystem.js
Other
487 stars 46 forks source link

Fails when indexedDB is not supporting Blobs #48

Closed SergejKasper closed 6 years ago

SergejKasper commented 6 years ago

When indexeddb is not supporting Blobs, the polyfill throws an error: PhantomJS 2.1.1 (Mac OS X 0.0.0) DataCloneError: DOM IDBDatabase Exception 25: The data being stored could not be cloned by the internal structured cloning algorithm.

It seems like the support-check in src/idb.filesystem.js#L46 is never executed

ebidel commented 6 years ago

Well that's no good! This was my bad in https://github.com/ebidel/idb.filesystem.js/commit/5fa21040fff256eed8a67d04c49ab546fc8a1def.

ebidel commented 6 years ago

Released 0.0.7. LMK if that doesn't work.