ComFreek
ComFreek

Reputation: 29434

How to define an icon for my context menu item?

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',
                             'image': 'http://www.example.org/img.png'
                            }
                           );

Upvotes: 1

Views: 219

Answers (1)

Ido Green
Ido Green

Reputation: 2813

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

Upvotes: 1

Related Questions