You won't need to modify the bootstrap.js file, where that page says do X in the bootstrap.js file in the startup() function, just use the main.js file for your sdk add-on pretty much anywhere you'd like.
The main.js file is evaluated within the startup() function.
Erik
Thank you for your reply.
In documentation which you refer said that i should change bootstrap.js,
but I can't find way to do this via online Add-on builder, so i tried
Add-on SDK.
Inside file bootsrap.js contain a warning:
// IMPORTANT: Avoid adding any initialization tasks here, if you need to
do
// something before add-on is loaded consider addon/runner module
instead!
Should i ignore this warning and add code inside bootstrap.js or i
should add my code in runner.js ?
On Сб, 2013-04-06 at 09:04 -0700, Erik Vold wrote:
> Hey,
>
> You will need to follow the documentation here
https://developer.mozilla.org/en-US/docs/Extensions/Inline_Options#Display_notifications
>
> This will give you a reference to the document that displays the preferences in about:addons for your add-on, then you will need to add the clock widget to that document.
>
> Erik
>
> ----- Original Message -----
> From:
le...@cfotr.com
> To:
dev-ext...@lists.mozilla.org
> Sent: Friday, April 5, 2013 10:46:10 PM
> Subject: Custom widget on extension settings page
>
> hello.
>
> I am developing addon for firefox via Mozilla Addon Builder. I use sdk/simple-prefs in my extension and it's work fine. But existed settings type is not enough.
> I want customize extension setting page by adding custom control widget (specifically a clock widget, so user may choose time).
>
> How can i do that ?