Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 88481c6

Browse files
committed
Change arrow fnction to function, like as es5
1 parent 9c6a690 commit 88481c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/jquery.fileupload-ui.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
// widget (via file input selection, drag & drop or add API call).
9494
// See the basic file upload widget for more information:
9595
add: function (e, data) {
96-
// console.log('add: XXXXXXX', e, data);
9796
var $this = $(this),
9897
that = $this.data('blueimp-fileupload') || $this.data('fileupload'),
9998
options = that.options;
@@ -131,8 +130,6 @@
131130
break;
132131
}
133132

134-
// console.log(header, type);
135-
136133
if (type !== 'unknown') {
137134
if (type === 'image/heic' || type === 'image/heif') {
138135
var originalName = data.files[0].name;
@@ -141,7 +138,7 @@
141138
blob: data.files[0],
142139
toType: 'image/jpeg',
143140
quality: 0.5, // cuts the quality and size by half
144-
}).then((conversionResultBlob) => {
141+
}).then(function (conversionResultBlob) {
145142
// conversionResult is a BLOB
146143
// of the JPEG formatted image
147144
// with low quality

0 commit comments

Comments
 (0)