Skip to content

Commit

Permalink
fix image uploads being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Mar 11, 2021
1 parent e79e4b5 commit 8100c70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/platform/web/dom/ImageHandle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8100c70

Please sign in to comment.