bearsfeed icon indicating copy to clipboard operation
bearsfeed copied to clipboard

Error

Open jasonboateng opened this issue 7 years ago • 0 comments

getBlob(path: string): Promise { return new Promise((resolve, reject)=>{ this.platform.ready().then(() => { window.resolveLocalFileSystemURL(path, (fileEntry)=> { fileEntry.file(file => { const fileReader = new FileReader(); fileReader.onloadend = (res: any) => resolve(new Blob([new Uint8Array(res.target.result)], {type: 'image/jpeg'})); fileReader.onerror = (error: any) => reject(error); fileReader.readAsArrayBuffer(file); }); }); }); }); }

window.resolveLocalFileSystemURL is not a function how to i fix i tried calling platform.ready didnt work

jasonboateng avatar Mar 27 '18 18:03 jasonboateng