Update heic-convert to 2.1.0

This commit is contained in:
Fedor Indutny 2024-08-05 13:26:40 -07:00 committed by GitHub
parent c4f0db0307
commit 610e441de9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 27 deletions

View file

@ -22,7 +22,7 @@ export async function handleImageAttachment(
const uuid = genUuid();
const bytes = new Uint8Array(await file.arrayBuffer());
const convertedFile = await new Promise<File>((resolve, reject) => {
const convertedData = await new Promise<Uint8Array>((resolve, reject) => {
ipcRenderer.once(`convert-image:${uuid}`, (_, { error, response }) => {
if (response) {
resolve(response);
@ -33,7 +33,7 @@ export async function handleImageAttachment(
ipcRenderer.send('convert-image', uuid, bytes);
});
processedFile = new Blob([convertedFile]);
processedFile = new Blob([convertedData]);
}
const {