Chrome扩展名:选项菜单已禁用



我创建了一个新的chrome扩展名并将其安装在开发人员模式下。它在我的笔记本电脑中工作正常。但是在其他一些笔记本电脑中,选项按钮被禁用。请帮忙。我无法共享完整的代码,但这就是everest.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"
  }
}

谢谢!

它的工作。这条线不在" options_page":" options.html"在清单中。添加该行解决了问题。

最新更新