Reputation: 4115
I use the following lines to define BlobBuilder
object and slice
function in Chrome extension
window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder;
Blob.prototype.slice = Blob.prototype.slice || function(start, length) {
return this.webkitSlice(start, start + length);
}
It works in Chrome with version up to 23, but for the latest version 24, it does not recognize my definitions any more. For example, var builder = new BlobBuilder()
will prompt an error: Uncaught TypeError: undefined is not a function
.
Does anyone know what's going on here? Thanks!
Upvotes: 1
Views: 538
Reputation: 18554
BlobBuilder
webkit version WebKitBlobBuilder
is no longer supported by Chrome and is deprecated, Check this issue
Upvotes: 1