[英]Extension not working in Chrome 24
I use the following lines to define BlobBuilder
object and slice
function in Chrome extension 我使用以下几行在Chrome扩展程序中定义
BlobBuilder
对象和slice
函数
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. 它可以在Chrome中使用,最高版本为23,但对于最新版本为24,则无法再识别我的定义。 For example,
var builder = new BlobBuilder()
will prompt an error: Uncaught TypeError: undefined is not a function
. 例如,
var builder = new BlobBuilder()
将提示错误: Uncaught TypeError: undefined is not a function
。
Does anyone know what's going on here? 有人知道这是怎么回事吗? Thanks!
谢谢!
BlobBuilder
Webkit版本WebKitBlobBuilder
不再受Chrome支持,已弃用,请检查此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.