Skip to content

Commit caa8a32

Browse files
author
Chris Zhan
committed
v1.2.1 build
1 parent 5ec0ad5 commit caa8a32

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dist/vue-croppa.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* vue-croppa v1.2.0
2+
* vue-croppa v1.2.1
33
* https://github.com/zhanziyang/vue-croppa
44
*
55
* Copyright (c) 2018 zhanziyang
@@ -1069,13 +1069,13 @@ var component = { render: function render() {
10691069
if (!this._fileSizeIsValid(file)) {
10701070
this.loading = false;
10711071
this.$emit(events.FILE_SIZE_EXCEED_EVENT, file);
1072-
throw new Error('File size exceeds limit which is ' + this.fileSizeLimit + ' bytes.');
1072+
return false;
10731073
}
10741074
if (!this._fileTypeIsValid(file)) {
10751075
this.loading = false;
10761076
this.$emit(events.FILE_TYPE_MISMATCH_EVENT, file);
10771077
var type = file.type || file.name.toLowerCase().split('.').pop();
1078-
throw new Error('File type (' + type + ') mimatches (' + this.accept + ').');
1078+
return false;
10791079
}
10801080
if (typeof window !== 'undefined' && typeof window.FileReader !== 'undefined') {
10811081
var fr = new FileReader();

0 commit comments

Comments
 (0)