最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Chrome extension icons not all showing - Stack Overflow

programmeradmin1浏览0评论

I followed the instructions for manifest icons provided by Google from their developer website.

Here's a snippet of my manifest file (the png images are squared and the correct size):

"icons": { 

    "16": "icon16.png",
    "32": "icon32.png",
    "48": "icon48.png",
    "128": "icon128.png"
  },

So I uploaded my app and then installed it, but for some reason my app logo is still not showing on the chrome://extensions page.

Also in the chrome webstore my logo is not filling the whole space of the puzzle piece as seen here:

Is there something else I need to do for it to show?

I followed the instructions for manifest icons provided by Google from their developer website.

Here's a snippet of my manifest file (the png images are squared and the correct size):

"icons": { 

    "16": "icon16.png",
    "32": "icon32.png",
    "48": "icon48.png",
    "128": "icon128.png"
  },

So I uploaded my app and then installed it, but for some reason my app logo is still not showing on the chrome://extensions page.

Also in the chrome webstore my logo is not filling the whole space of the puzzle piece as seen here:

Is there something else I need to do for it to show?

Share Improve this question edited Jul 27, 2015 at 4:43 Mike Laren 8,18817 gold badges52 silver badges71 bronze badges asked Jul 26, 2015 at 2:51 lasec0203lasec0203 2,6831 gold badge23 silver badges42 bronze badges 7
  • Two things to check: first, make sure you restart chrome. You shouldn't have to but it seems to fix this sometimes. second, make sure the icons are in the right path as well as name. – Brian Commented Jul 26, 2015 at 5:00
  • @Brian Done that, didn't work. – lasec0203 Commented Jul 26, 2015 at 5:10
  • 1 Zip the icons and upload somewhere, post the link here, please. BTW, you have an extension for which webstore always shows a small logo inside the puzzle piece. – woxxom Commented Jul 26, 2015 at 10:14
  • @wOxxOm here are the icons. Thanks for that info about extensions, I looked at webstore again and understood what you were saying – lasec0203 Commented Jul 26, 2015 at 18:38
  • No problems here: the 48px icon is showing on the extensions page if I put it into another extension. – woxxom Commented Jul 26, 2015 at 18:42
 |  Show 2 more ments

1 Answer 1

Reset to default 10

I found my problem in the manifest file.

Originally I had my "icons" object inside the "browser_action" object like this:

"browser_action": {
    "name": "Manipulate DOM",
    "icons": { 
        "16": "icon16.png",
        "32": "icon32.png",
        "48": "icon48.png",
        "128": "icon128.png"
    }, 
    "default_icon": "icon128.png",
    "default_popup":"popup.html"
},

Upon relocating the "icons" object out of the "browser_action" object, the icon showed up in the chrome://extensions page like it is suppose to.

"icons": { 
    "16": "icon16.png",
    "32": "icon32.png",
    "48": "icon48.png",
    "128": "icon128.png"
},
"browser_action": {
    "name": "Manipulate DOM",
    "default_icon": "icon128.png",
    "default_popup":"popup.html"
},
发布评论

评论列表(0)

  1. 暂无评论