Skip to content

Commit

Permalink
1.63 uses Blobs to createImageBitmap (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Yau <social@stevenyau.co.uk>
  • Loading branch information
yaustar and Steven Yau committed Sep 15, 2023
1 parent 0bf83b1 commit 0f41bad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine-patches/one-page-no-xhr-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
bytes[i] = data.charCodeAt(i);
}
data = bytes.buffer;

if (url.startsWith('data:image/')) {
data = new Blob([data]);
}
}

callback(null, data);
Expand Down

0 comments on commit 0f41bad

Please sign in to comment.