Update heic-convert to 2.1.0
This commit is contained in:
parent
c4f0db0307
commit
610e441de9
6 changed files with 27 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue