about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorStanislas <angristan@pm.me>2019-08-17 22:04:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-08-17 22:04:15 +0200
commit5d8ee24cd5d82d41a6914ee9982c38cc18d859b4 (patch)
treefae47abc1cd8bb1aeedf1a82a67615146841c16b /app/javascript
parent15969171c18844d61e252bc4b13a2b6875e8cbba (diff)
Remove WebP support (#11589)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/utils/resize_image.js2
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 d566edb03..7196dc96b 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;
   }