Men*_*cia 24 google-chrome-extension
将webrequest api与事件页面一起使用时,会收到错误消息:
'webRequest'API不能与事件页面一起使用.
在网上看,我找到了这个主题:http://code.google.com/p/chromium/issues/detail?id = 119613
我的问题:为什么我们不能(或怎么能)同时使用两者?
Har*_*ody 40
对于那些不想使用新的事件页面并且更喜欢坚持使用背景页面的人,请确保"persistent": true
在清单文件的background
属性中进行设置.
"background": {
"scripts": ["bootstrap.js"],
"persistent": true
},
Run Code Online (Sandbox Code Playgroud)
Men*_*cia 18
找到declarativeWebRequest API,这将是解决方案.
现在可以在开发和测试渠道中使用Avalaible.
归档时间: |
|
查看次数: |
15302 次 |
最近记录: |