Skip to content

Commit

Permalink
v1.2.1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Zhan committed Feb 28, 2018
1 parent 5ec0ad5 commit caa8a32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/vue-croppa.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* vue-croppa v1.2.0
* vue-croppa v1.2.1
* https://github.com/zhanziyang/vue-croppa
*
* Copyright (c) 2018 zhanziyang
Expand Down Expand Up @@ -1069,13 +1069,13 @@ var component = { render: function render() {
if (!this._fileSizeIsValid(file)) {
this.loading = false;
this.$emit(events.FILE_SIZE_EXCEED_EVENT, file);
throw new Error('File size exceeds limit which is ' + this.fileSizeLimit + ' bytes.');
return false;
}
if (!this._fileTypeIsValid(file)) {
this.loading = false;
this.$emit(events.FILE_TYPE_MISMATCH_EVENT, file);
var type = file.type || file.name.toLowerCase().split('.').pop();
throw new Error('File type (' + type + ') mimatches (' + this.accept + ').');
return false;
}
if (typeof window !== 'undefined' && typeof window.FileReader !== 'undefined') {
var fr = new FileReader();
Expand Down
Loading

0 comments on commit caa8a32

Please sign in to comment.