Skip to content

Commit

Permalink
Use exported FileReader
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-stead-sonocent authored and bjornstar committed Jul 10, 2024
1 parent 3dbf7cb commit eba3fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,15 +687,15 @@ function array2base64 (input) {

if (!blob.arrayBuffer) {
blob.arrayBuffer = function arrayBuffer() {
var fr = new FileReader();
var fr = new exports.FileReader();
fr.readAsArrayBuffer(this);
return promisify(fr);
};
}

if (!blob.text) {
blob.text = function text() {
var fr = new FileReader();
var fr = new exports.FileReader();
fr.readAsText(this);
return promisify(fr);
};
Expand Down

0 comments on commit eba3fdc

Please sign in to comment.