Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3531592
D9779.id32965.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
686 B
Referenced Files
None
Subscribers
None
D9779.id32965.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 7:49 AM (11 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704204
Default Alt Text
D9779.id32965.diff (686 B)
Attached To
Mode
D9779: [Flow202][web][skip-ci] [13/x] Fix Flow issues in unparameterized Promise constructors
Attached
Detach File
Event Timeline
Log In to Comment