Page MenuHomePhabricator

D9779.id.diff
No OneTemporary

D9779.id.diff

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<Image>((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<Blob>(resolve =>
canvas.toBlob(blobResult => resolve(blobResult)),
);
} catch (e) {

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 7:09 AM (10 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704204
Default Alt Text
D9779.id.diff (686 B)

Event Timeline