Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Mar 2, 2017
1 parent dea3408 commit 5e0b962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -13,7 +13,7 @@ module.exports = function blobToBuffer (blob, cb) {
function onLoadEnd (e) {
reader.removeEventListener('loadend', onLoadEnd, false)
if (e.error) cb(e.error)
else cb(null, new Buffer(reader.result))
else cb(null, Buffer.from(reader.result))
}

reader.addEventListener('loadend', onLoadEnd, false)
Expand Down

0 comments on commit 5e0b962

Please sign in to comment.