diff options
-rw-r--r-- | src/config.json | 6 | ||||
-rw-r--r-- | src/js/app.js | 15 |
2 files changed, 15 insertions, 6 deletions
diff --git a/src/config.json b/src/config.json new file mode 100644 index 0000000..006df4b --- /dev/null +++ b/src/config.json @@ -0,0 +1,6 @@ +{ + "black_list": [ + "webapps-html5-homescreen@5.0", + "homescreen@0.1" + ] +}
\ No newline at end of file diff --git a/src/js/app.js b/src/js/app.js index 90fde53..16749c0 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,4 +1,5 @@ import Mustache from 'mustache'; +var configjson = require('../config.json'); var host = document.location.hostname; var port = document.location.port; @@ -40,12 +41,14 @@ function display_icon(app) { function render_applications(apps) { var appContainer = document.getElementById('AppContainer'); for( var i=0; i<apps.length; i++) { - appContainer.innerHTML += Mustache.render(template, apps[i]); - (function(app) { - display_icon(app).then(function() { - show_app(app); - }); - })(apps[i]); + if( configjson.black_list.indexOf(apps[i].id) === -1 ) { + appContainer.innerHTML += Mustache.render(template, apps[i]); + (function(app) { + display_icon(app).then(function() { + show_app(app); + }); + })(apps[i]); + } } } |