从chrome:
加载Extensions页面时出现错误Uncaught ReferenceError: ExtensionSettings is not defined
(anonymous function)
从页面:
chrome://chrome/extensions/
只有当我的分机处于活动状态时才会发生这种情况,而不是在它被禁用时(最多只有一个分机始终处于活动状态且只有此分机)。
我应该参考我不会触及ExtensionSettings变量或对象中的整个代码。
失败的电话如下:
ExtensionSettings.returnExtensionsData({"developerMode":true,"extensions":[{"allowFileAccess":true,"allow_activity":f...
清单:
{
"name": "Example Chrome pluggin",
"version": "1.0",
"manifest_version": 2,
"browser_action": {
"default_icon": "icons/icon1.png",
"default_popup" : "default_popup.html"
},
"background": {
"scripts" : ["jquery-1.7.2.min.js","background.js"]
},
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["jquery-1.7.2.min.js","tracker.js"],
"run_at" : "document_end"
}
],
"permissions": ["tabs", "http://www.example.com/", "https://www.example.com/"]
}