Search code examples
firefoxfirefox-addon-sdk

How to add a homepage link in my about firefox addon


I would like the user to be able to view a hyperlink to my website when he clicks on my addon from tools , addon. So how would i exactly add a hyperlink to my site. I am using firefox addon sdk.enter image description here

Edit:

I realized the icon could be changed with icon:"name.png" in packages.json. But is there a similar way to change the homepage URL.


Solution

  • Update your package.json by adding a homepage property like this:

    {
    "name": "myaddons", 
    "license": "MPL 2.0", 
    "author": "", 
    "version": "0.1", 
    "fullName": "myaddons", 
    "id": "jid1-TGV1ZHqyB9PkVg", 
    "description": "a basic add-on",
    "homepage": "http://examples.com",
    "icon": "chrome://myext/skin/icon.png"
    }
    

    and then run cfx xpi.

    These values are used by install.rdf.

    More info