Page MenuHomePhabricator

D9779.diff
No OneTemporary

D9779.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:43 AM (11 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704204
Default Alt Text
D9779.diff (686 B)

Event Timeline