From b42e4159057edbba8c3bbed20aa21af3ab67b522 Mon Sep 17 00:00:00 2001 From: chenyangshun02 <947293563@qq.com> Date: Fri, 4 Nov 2016 19:16:31 +0800 Subject: [PATCH] Update cropit.js fix the issue about show file dialog slow in chrome --- src/cropit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cropit.js b/src/cropit.js index a58a9ae..417e9a1 100644 --- a/src/cropit.js +++ b/src/cropit.js @@ -25,7 +25,7 @@ class Cropit { }; this.$preview = this.options.$preview.css('position', 'relative'); - this.$fileInput = this.options.$fileInput.attr({ accept: 'image/*' }); + this.$fileInput = this.options.$fileInput.attr({ accept: 'image/gif,image/jpeg,image/jpg,image/png,image/svg' }); this.$zoomSlider = this.options.$zoomSlider.attr({ min: 0, max: 1, step: 0.01 }); this.previewSize = {