added arrayBuffer and text methods to blob
This commit is contained in:
@@ -366,7 +366,14 @@
|
|||||||
} else {
|
} else {
|
||||||
this.type = this.type.toLowerCase()
|
this.type = this.type.toLowerCase()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Blob.prototype.arrayBuffer = function () {
|
||||||
|
return Promise.resolve(this._buffer)
|
||||||
|
}
|
||||||
|
|
||||||
|
Blob.prototype.text = function () {
|
||||||
|
return Promise.resolve(textDecode(this._buffer))
|
||||||
}
|
}
|
||||||
|
|
||||||
Blob.prototype.slice = function (start, end, type) {
|
Blob.prototype.slice = function (start, end, type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user