mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Add return for invalid filetypes, fixes wrong behaviour
This commit is contained in:
		
							parent
							
								
									5deb1bf40e
								
							
						
					
					
						commit
						6434dac04d
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,7 @@ export default (os: OS) => {
 | 
			
		|||
					text: '%i18n:common.got-it%'
 | 
			
		||||
				}]
 | 
			
		||||
			});
 | 
			
		||||
			reject();
 | 
			
		||||
			return reject('invalid-filetype');
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const w = os.new(CropWindow, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,7 @@ export default (os: OS) => {
 | 
			
		|||
					text: '%i18n:common.got-it%'
 | 
			
		||||
				}]
 | 
			
		||||
			});
 | 
			
		||||
			reject();
 | 
			
		||||
			return reject('invalid-filetype');
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const w = os.new(CropWindow, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue