0
0
Fork 0

Add WebP support (#9879)

* Add WebP support

* Remove the changes to the tooltip

refs: https://github.com/tootsuite/mastodon/pull/9879#pullrequestreview-199312528
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-02-02 20:25:04 +09:00 committed by Eugen Rochko
parent b253d3e0c2
commit 5092d17f29
5 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ const loadImage = inputFile => new Promise((resolve, reject) => {
});
const getOrientation = (img, type = 'image/png') => new Promise(resolve => {
if (type !== 'image/jpeg') {
if (!['image/jpeg', 'image/webp'].includes(type)) {
resolve(1);
return;
}