开发者

How to define an icon for my context menu item?

开发者 https://www.devze.com 2023-03-18 23:57 出处:网络
How can I define an icon for a context menu item without declaring it in manifest.json? For example I want to offer the possibility to change the icon in the options.

How can I define an icon for a context menu item without declaring it in manifest.json?

For example I want to offer the possibility to change the icon in the options.

I thought I could use something like that, but nothing found in the Docs:

chrome.contextMenus.create( {'type': 'normal',
                             'title': 'CustomMenu',
          开发者_StackOverflow中文版                   'image': 'http://www.example.org/img.png'
                            }
                           );


From looking at the current documentation: http://code.google.com/chrome/extensions/contextMenus.html You cannot update the icon.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号