我创建了一个新的chrome扩展程序并将其安装在开发人员模式下。但是在其他一些笔记本电脑中,选项按钮被禁用。请帮忙。 我无法共享完整的代码,但这是manifest.json文件的样子:
{
"name": "Asana Actual vs Estimation",
"version": "0.0.1",
"manifest_version": 2,
"description": "Add tags to task if the actual hours exceeds the estimated value",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"default_locale": "en",
"content_scripts": [{
"matches": ["<all_urls>"],
"all_frames": true,
"js": ["js/jquery/jquery.js","js/content.js"],
"css": ["css/styles.css"]
}],
"options_page":"options.html",
"permissions": [
"activeTab",
"<all_urls>",
"storage"
],
"content_security_policy": "script-src 'self' https://www.gstatic.com/; object-src 'self'",
"browser_action": {
"default_icon": "icons/icon16.png"
}
}
谢谢!
答案 0 :(得分:0)
正在工作。这条线不在那里 “ options_page”:“ options.html” 在manifest.json中。添加该行即可解决问题。