Chrome扩展程序 - 设置页面上扩展程序的图像 [英] Chrome Extension - Image of Extension on Settings Page

查看:177
本文介绍了Chrome扩展程序 - 设置页面上扩展程序的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何让我们的扩展程序的图像/图标显示在设置 - >扩展页面上。我查看了清单api,但是我发现最接近的东西是包含图标,这些都无效。

解决方案

(我有一个图标)我有:

  {
name:很明显,我的清单还有更多还有,我还没有使用清单版本2,
图标:
{
128:images / icon128.png,
16 :images / icon16.png,
48:images / icon48.png
}
}


I am trying to figure out how to get an image/icon of our extension to display on the Settings->Extensions page. I looked through the manifest api but the closest thing I found related to this was to include "Icons" which did not work.

解决方案

Looking at my manifest (where I have an icon) I have:

{
   "name": "Obviously there's more to my manifest file. Also, I'm not using manifest version 2 yet", 
   "icons":
   {
      "128": "images/icon128.png",
      "16": "images/icon16.png",
      "48": "images/icon48.png"
   }
}

这篇关于Chrome扩展程序 - 设置页面上扩展程序的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆