Reputation: 4541
I have a Firefox addon available for my website. I add the download link of the addon to a simple , but when an user click it, it prompts him to download the .XPI file of the addon - Is there any way so I can pop-up the normal EXTENSION INSTALL window for my addon? Is there any special thing to do that or this is available only in addons.mozilla.org?
Upvotes: 1
Views: 133
Reputation: 57651
You can use the InstallTrigger object. Also, you should be using application/x-xpinstall
MIME type for your extension file, this will trigger installation even if InstallTrigger
isn't used (e.g. JavaScript disabled).
Upvotes: 5