Skip to content

Commit

Permalink
Reorganize usage of getAsFile()
Browse files Browse the repository at this point in the history
Signed-off-by: Sheogorath <[email protected]>
  • Loading branch information
SISheogorath committed Mar 18, 2018
1 parent 41bf7cc commit 6219962
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/vendor/inlineAttachment/inline-attachment.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,11 @@
if (this.isFileAllowed(item)) {
result = true;
var id = ID();
this.onFileInserted(item.getAsFile(), id);
this.uploadFile(item.getAsFile(), id);
var file = item.getAsFile();
if (file !== null) {
this.onFileInserted(file, id);
this.uploadFile(file, id);
}
}
}
}
Expand Down

0 comments on commit 6219962

Please sign in to comment.