Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33307198
D9779.1768797125.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
686 B
Referenced Files
None
Subscribers
None
D9779.1768797125.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
Mon, Jan 19, 4:32 AM (56 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5951968
Default Alt Text
D9779.1768797125.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