mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
fix image uploads being broken
This commit is contained in:
parent
e79e4b525d
commit
8100c70e88
@ -106,11 +106,9 @@ export function hasReadPixelPermission() {
|
||||
|
||||
async function loadImgFromBlob(blob) {
|
||||
const img = document.createElement("img");
|
||||
let detach;
|
||||
const loadPromise = domEventAsPromise(img, "load");
|
||||
img.src = blob.url;
|
||||
await loadPromise;
|
||||
detach();
|
||||
return img;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user