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!
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/0n9WMMQrdYQJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
--