diff --git a/web/media/media-utils.js b/web/media/media-utils.js --- a/web/media/media-utils.js +++ b/web/media/media-utils.js @@ -26,7 +26,7 @@ const start = Date.now(); const imageURI = fetchableMediaURI(uri); try { - image = await new Promise((resolve, reject) => { + image = await new Promise((resolve, reject) => { const img = new Image(); img.src = imageURI; img.onload = () => { @@ -172,7 +172,7 @@ } context.drawImage(image, 0, 0); - reorientedBlob = await new Promise(resolve => + reorientedBlob = await new Promise(resolve => canvas.toBlob(blobResult => resolve(blobResult)), ); } catch (e) {