coturiv / bearsfeed

BearsFeed is an all new way for you to connect with your school community.

Home Page:https://itunes.apple.com/us/app/bearsfeed/id1146497623?mt=8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error

jasonboateng opened this issue · 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