diff options
author | Stanislas <angristan@pm.me> | 2019-08-17 22:04:15 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 03:36:22 -0600 |
commit | b956d469846e9530dd6fa020a1161cd1b9d2b7dd (patch) | |
tree | 5ceb06a55fc3b16ac1df7051c5b58e20e0aacfac /app/javascript | |
parent | e19765e0f2e0b7e99e8c7c5b4285b8ca83892c99 (diff) |
port tootsuite#11589 to monsterfork: Remove WebP support
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/utils/resize_image.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/utils/resize_image.js b/app/javascript/mastodon/utils/resize_image.js index bbdbc865e..d1608094f 100644 --- a/app/javascript/mastodon/utils/resize_image.js +++ b/app/javascript/mastodon/utils/resize_image.js @@ -31,7 +31,7 @@ const loadImage = inputFile => new Promise((resolve, reject) => { }); const getOrientation = (img, type = 'image/png') => new Promise(resolve => { - if (!['image/jpeg', 'image/webp'].includes(type)) { + if (type !== 'image/jpeg') { resolve(1); return; } |