mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix image contentType when transcoding
This commit is contained in:
@@ -112,9 +112,6 @@ export async function scaleImageToLevel(
|
||||
throw new Error('image not a canvas');
|
||||
}
|
||||
({ image } = data);
|
||||
if (!(image instanceof HTMLCanvasElement)) {
|
||||
throw new Error('image not a canvas');
|
||||
}
|
||||
} catch (err) {
|
||||
const error = new Error('scaleImageToLevel: Failed to process image');
|
||||
error.originalError = err;
|
||||
|
||||
Reference in New Issue
Block a user