if a faulty widget fails to define a valid area no widgets at all will be rendered.
So you mean if it doesn't define the area field it'll break everything? If so I could add a tweak for drawWidgets that fixes this.
area
Will the code here also run when another app (e.g. the launcher) is loaded?
Yes, it'll be run all the time regardless of if you need widgets.
You can always define a widget, but just not put anything in the WIDGETS array? That would have the desired effect too.
WIDGETS
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So you mean if it doesn't define the
area
field it'll break everything? If so I could add a tweak for drawWidgets that fixes this.Yes, it'll be run all the time regardless of if you need widgets.
You can always define a widget, but just not put anything in the
WIDGETS
array? That would have the desired effect too.