I have added a Firefox extension here:
https://addons.mozilla.org/en-GB/firefo ... y-checkout
and want to add a link to my website so that my users can install it directly without going to the "Firefox Add-ons" store.
I can see how I can just do :
- Code: Select all
$('#InstallButton').click(function(event) {
document.location.href = 'https://addons.mozilla.org/firefox/downloads/file/834794/the_lucky_checkout_shopping_tool-1.6.1-an+fx-windows.xpi';
event.preventDefault();
return false;
});
but if I do that then I need to change the code every time I update the extension. Is there a way I can link to the latest version of my extension so that I don't need to remember to update the code every time I update the extension?
Thanks,
Martin