相关疑难解决方法(0)

Chrome扩展程序弹出窗口不再显示

我正在创建一个新的Chrome扩展程序,一切都很好.但是,今天我编写了一个新的函数,然后我看到我的扩展图标是灰色的.当我点击图标时,弹出窗口不会显示.一个有趣的观点是扩展正在运行.没有错误日志.

我评论了我写的所有代码,但没有效果.如果我直接在Chrome上打开链接,则会打开一个新标签,正常显示弹出窗口.[铬延伸://extensionId/popup.html]

我的清单看起来还不错,还有popup.html/js.我真的不知道发生了什么.有任何想法吗?谢谢!

的manifest.json

{
  "name": "Say It",
  "version": "0.0.1",
  "manifest_version": 2,
  "description": "__MSG_appDescription__",
  "icons": {
    "16": "images/icon-16.png",
    "128": "images/icon-128.png"
  },
  "default_locale": "en",
  "background": {
    "scripts": [
      "scripts/chromereload.js",
      "scripts/background.js"
    ]
  },
  "permissions": [
    "tabs",
    "http://*/*",
    "https://*/*",
    "background",
    "bookmarks",
    "clipboardRead",
    "clipboardWrite",
    "contentSettings",
    "cookies",
    "*://*.google.com/",
    "debugger",
    "history",
    "idle",
    "management",
    "notifications",
    "pageCapture",
    "topSites",
    "storage",
    "webNavigation",
    "webRequest",
    "webRequestBlocking",
    "nativeMessaging"
  ],
  "options_ui": {
    "page": "options.html",
    "chrome_style": true
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "scripts/contentscript.js"
      ],
      "run_at": "document_end",
      "all_frames": false …
Run Code Online (Sandbox Code Playgroud)

html javascript google-chrome-extension

8
推荐指数
2
解决办法
4385
查看次数

标签 统计

google-chrome-extension ×1

html ×1

javascript ×1