Return array buffer when possible
This commit is contained in:
@@ -465,8 +465,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
FileReader.prototype.readAsArrayBuffer = function (blob) {
|
FileReader.prototype.readAsArrayBuffer = function (blob) {
|
||||||
_read(this, blob, 'readAsText')
|
_read(this, blob, 'readAsText')
|
||||||
this.result = blob._buffer.slice()
|
// return ArrayBuffer when possible
|
||||||
|
this.result = (blob._buffer.buffer || blob._buffer).slice()
|
||||||
}
|
}
|
||||||
|
|
||||||
FileReader.prototype.abort = function () {}
|
FileReader.prototype.abort = function () {}
|
||||||
|
|||||||
Reference in New Issue
Block a user