简体   繁体   中英

Extension not working in Chrome 24

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!

BlobBuilder Webkit版本WebKitBlobBuilder不再受Chrome支持,已弃用,请检查此问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM