summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.json9
-rw-r--r--src/js/apps.js6
2 files changed, 11 insertions, 4 deletions
diff --git a/src/config.json b/src/config.json
index 930da03..9de1cd2 100644
--- a/src/config.json
+++ b/src/config.json
@@ -1,10 +1,6 @@
{
"apps": [
{
- "id": "launcher",
- "icon": "icon icon-home"
- },
- {
"id": "mediaplayer",
"icon": "icon icon-music"
},
@@ -15,8 +11,13 @@
{
"id": "navigation",
"icon": "icon icon-location"
+ },
+ {
+ "id": "webapps-html5-launcher",
+ "icon": "icon icon-home"
}
],
+ "launch": "webapps-html5-launcher",
"network": {
"bluetooth": "icon-bluetooth",
"ethernet": "icon-ethernet",
diff --git a/src/js/apps.js b/src/js/apps.js
index b9829ad..877b646 100644
--- a/src/js/apps.js
+++ b/src/js/apps.js
@@ -26,6 +26,12 @@ function load_application_list() {
name: internalApp.name,
icon: app.icon
});
+
+ if( app.id === configjson.launch ) {
+ afmMain.start(internalApp.id).then(function(result) {
+ console.log("success: " + result);
+ });
+ }
}
});