mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 01:53:41 +01:00
parent
bf94a43496
commit
6b2eefc7bf
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ const loadImage = inputFile => new Promise((resolve, reject) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const getOrientation = (img, type = 'image/png') => new Promise(resolve => {
|
const getOrientation = (img, type = 'image/png') => new Promise(resolve => {
|
||||||
if (type !== 'image/jpeg') {
|
if (!['image/jpeg', 'image/webp'].includes(type)) {
|
||||||
resolve(1);
|
resolve(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue