Add return for invalid filetypes, fixes wrong behaviour
This commit is contained in:
		| @@ -16,7 +16,7 @@ export default (os: OS) => { | |||||||
| 					text: '%i18n:common.got-it%' | 					text: '%i18n:common.got-it%' | ||||||
| 				}] | 				}] | ||||||
| 			}); | 			}); | ||||||
| 			reject(); | 			return reject('invalid-filetype'); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		const w = os.new(CropWindow, { | 		const w = os.new(CropWindow, { | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ export default (os: OS) => { | |||||||
| 					text: '%i18n:common.got-it%' | 					text: '%i18n:common.got-it%' | ||||||
| 				}] | 				}] | ||||||
| 			}); | 			}); | ||||||
| 			reject(); | 			return reject('invalid-filetype'); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		const w = os.new(CropWindow, { | 		const w = os.new(CropWindow, { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nasha Hiramiya
					Nasha Hiramiya