where is the popup settings in google chrome extension manifest v3
Asked Answered
G

1

9

I am developing a google chrome extension using the manifest v3, I read the manifest docs from here but found that did not contains popup settings, in v2 of manifest, we could set up popup like this:

"browser_action" : {
    "default_icon" : {
      "19" : "/logo.png" ,
      "38" : "/logo.png"
    } ,
    "default_popup" : "/popup/index.html"
  } ,

how to set the default popup page in manifest v3 of google chrome extension?

Guidance answered 26/10, 2021 at 16:3 Comment(1)
Full error message, pleaseEllington
G
20

ok, I suddenly found that the popup setting was moved to actions, it could be setting like this:

{
  "name": "Action Extension",
  ...
  "action": {
    "default_icon": {              // optional
      "16": "images/icon16.png",   // optional
      "24": "images/icon24.png",   // optional
      "32": "images/icon32.png"    // optional
    },
    "default_title": "Click Me",   // optional, shown in tooltip
    "default_popup": "popup.html"  // optional
  },
  ...
}

here is the docs.

Guidance answered 29/1, 2022 at 11:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.