Commit 7e385edb by Sixong.Zhu

eslint

parent ca9d7754
Showing with 1 additions and 1 deletions
...@@ -584,7 +584,7 @@ ...@@ -584,7 +584,7 @@
private onFileDrop(e: DragEvent) { private onFileDrop(e: DragEvent) {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
const files = e.dataTransfer.files; const files = e.dataTransfer && e.dataTransfer.files;
if (files && files.length) { if (files && files.length) {
const file = files[0]; const file = files[0];
if (this.isImage(file)) { if (this.isImage(file)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment