Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteMX committed Jan 14, 2022
1 parent b02597d commit 83bb3f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "filedropper",
"widgetName": "FileDropper",
"version": "1.4.0",
"version": "1.4.1",
"description": "Drop files in your Mendix Application",
"copyright": "Mendix 2020",
"author": "Jelte Lagendijk",
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="FileDropper" version="1.4.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="FileDropper" version="1.4.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="FileDropper.xml"/>
</widgetFiles>
Expand Down
4 changes: 2 additions & 2 deletions src/store/fileDropperFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FileDropperFile implements IFileDropperFile {
this.status = "error";
}
// @ts-ignore
} catch (error: any) {
} catch (error) {
this.error = error;
this.status = error;
}
Expand All @@ -82,7 +82,7 @@ export class FileDropperFile implements IFileDropperFile {
this.hash = md5(base64);
}
// @ts-ignore
} catch (error: any) {
} catch (error) {
this.status = "error";
this.error = error.message || "unknown error";
this.data = this.base64 = null;
Expand Down
4 changes: 2 additions & 2 deletions src/util/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export const loadFileInMemory = (file: File, loadWithReader = true): Promise<Fil
reader.onload = ({ target: { result } }: any) => {
if (file.size === 0) {
return resolve({
base64: '',
base64: "",
data: new Blob()
})
});
}
const data = convertBase64ToBlob(result as string, file.type);
resolve({
Expand Down

0 comments on commit 83bb3f4

Please sign in to comment.