Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -22,8 +22,8 @@ export class ImageService {
|
||||
}
|
||||
|
||||
dataUrltoBlob(dataURI:string):Blob {
|
||||
var mime = dataURI.split( ';base64,')[0].split(':')[1];
|
||||
var byteCharacters = atob(dataURI.split( ';base64,')[1]);
|
||||
const mime = dataURI.split( ';base64,')[0].split(':')[1];
|
||||
const byteCharacters = atob(dataURI.split( ';base64,')[1]);
|
||||
|
||||
|
||||
const sliceSize = 512;
|
||||
@@ -52,7 +52,7 @@ export class ImageService {
|
||||
blobToDataUrl(blob:File):Promise<string> {
|
||||
|
||||
return new Promise<string>((resolve) => {
|
||||
let reader = new FileReader();
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener('error', () => {
|
||||
resolve("");
|
||||
});
|
||||
|
Reference in New Issue
Block a user