File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 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 ( ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments