File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -486,20 +486,18 @@ export default {
486
486
preloadImage (source , options ) {
487
487
// ie 11 support
488
488
let File = window .File
489
-
490
489
try {
491
- new File ([], ' ' )
492
- } catch (e) {
490
+ new File ([], ' ' ) // eslint-disable-line
491
+ } catch (e) {
493
492
File = class File extends Blob {
494
- constructor (chunks , filename , opts = {}){
493
+ constructor (chunks , filename , opts = {}) {
495
494
super (chunks, opts)
496
495
this .lastModifiedDate = new Date ()
497
- this .lastModified = + this .lastModifiedDate
496
+ this .lastModified = + this .lastModifiedDate
498
497
this .name = filename
499
498
}
500
499
}
501
500
}
502
-
503
501
options = Object .assign ({}, options)
504
502
if (typeof source === ' object' ) {
505
503
this .imageSelected = true
You can’t perform that action at this time.
0 commit comments