You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many thanks for this library. Its just what I needed to get cross platform filesystem with promises working in Cordova/Electron(Chrome).
To get it working with using JSPM and ES6 I had to import like this:
import * as CordovaPromiseFS from 'cordova-promise-fs';
and to create an instance I had to:
let fs = CordovaPromiseFS.default({Promise: window.Promise});
I've yet to look into why that was required over the defaults but its working great now and I thought this might help others who are trying the same. Without defining the Promise option I was getting an exception.
The text was updated successfully, but these errors were encountered:
Many thanks for this library. Its just what I needed to get cross platform filesystem with promises working in Cordova/Electron(Chrome).
To get it working with using JSPM and ES6 I had to import like this:
import * as CordovaPromiseFS from 'cordova-promise-fs';
and to create an instance I had to:
let fs = CordovaPromiseFS.default({Promise: window.Promise});
I've yet to look into why that was required over the defaults but its working great now and I thought this might help others who are trying the same. Without defining the
Promise
option I was getting an exception.The text was updated successfully, but these errors were encountered: