diff --git a/apps/_example_app/add_to_apps.json b/apps/_example_app/add_to_apps.json index 6c7172ec6..9043b0058 100644 --- a/apps/_example_app/add_to_apps.json +++ b/apps/_example_app/add_to_apps.json @@ -2,6 +2,7 @@ { "id": "7chname", "name": "My app's human readable name", "icon": "app.png", + "version":"0.01", "description": "A detailed description of my great app", "tags": "", "storage": [ diff --git a/apps/_example_widget/add_to_apps.json b/apps/_example_widget/add_to_apps.json index 705e504fc..8dc1c3cb4 100644 --- a/apps/_example_widget/add_to_apps.json +++ b/apps/_example_widget/add_to_apps.json @@ -2,6 +2,7 @@ { "id": "7chname", "name": "My widget's human readable name", "icon": "widget.png", + "version":"0.01", "description": "A detailed description of my great widget", "tags": "", "storage": [ diff --git a/apps/_example_widget/widget.js b/apps/_example_widget/widget.js index 6818f0502..01f9d1e19 100644 --- a/apps/_example_widget/widget.js +++ b/apps/_example_widget/widget.js @@ -1,16 +1,16 @@ /* run widgets in their own function scope so they don't interfere with currently-running apps */ (() => { - // add the width - var xpos = WIDGETPOS.tr-24;/**/; - WIDGETPOS.tr-= 28;/* the widget width plus some extra pixel to keep distance to others */; + // add the width + var xpos = WIDGETPOS.tr-24;/**/; + WIDGETPOS.tr-= 28;/* the widget width plus some extra pixel to keep distance to others */; - // draw your widget at xpos - function draw() { - // add your code - } + // draw your widget at xpos + function draw() { + // add your code + } - // add your widget - WIDGETS["mywidget"]={draw:draw}; + // add your widget + WIDGETS["mywidget"]={draw:draw}; })()