PaulBGD
PaulBGD

Reputation: 2084

How to update chrome app to manifest 2

My chrome extension is one of those that when you click it, all it does is open up a URL. It used to work fine with web_url, but web_url isn't working with manifest version 2. Here is my current extension manifest:

"name": "PTD",
"version": "2.7.8",
"manifest_version": 2,
"description": "Pokemon Tower Defense 1 and 2!",
"icons": {"128": "128.png"},
"default_locale": "en",
"app": {
   "urls": ["http://gamecorneronline.com/ptd.html"],
   "launch": {
      "web_url": "http://gamecorneronline.com/ptd.html"
    },
   "permissions": ["unlimitedStorage","notifications"]
}

Could you provide any help?

Upvotes: 0

Views: 589

Answers (1)

PaulBGD
PaulBGD

Reputation: 2084

Figured it out. Thanks for the help anyways:

{
  "name": "PTD1/PTD2",
  "description": "Play both PTD1 and PTD2!",
  "version": "3.2",
  "manifest_version": 2,
  "app": {
    "urls": [
      "http://example.com/",
    ],
    "launch": {
      "web_url": "http://example.com/"
    }
  },
  "icons": {
    "128": "icon_128.png"
  },
  "permissions": [
    "unlimitedStorage",
    "notifications"
  ]
}

Upvotes: 0

Related Questions