From 32adcaf7c59ed6b68053998757130327d348b41e Mon Sep 17 00:00:00 2001 From: Turbat Bayartogtokh Date: Thu, 3 Oct 2019 22:09:31 -0600 Subject: [PATCH] In Safari file object doesn't have lastModifiedDate property --- src/components/vue-dropzone.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/vue-dropzone.vue b/src/components/vue-dropzone.vue index ff90910..5dfe58c 100755 --- a/src/components/vue-dropzone.vue +++ b/src/components/vue-dropzone.vue @@ -111,8 +111,7 @@ export default { if ( this.files[_i].name === file.name && this.files[_i].size === file.size && - this.files[_i].lastModifiedDate.toString() === - file.lastModifiedDate.toString() + this.files[_i].lastModified === file.lastModified ) { this.removeFile(file); isDuplicate = true;