import Mustache from 'mustache'; var host = document.location.hostname; var port = document.location.port; var args = new URLSearchParams(document.location.search.substring(1)); var token = args.get("x-afb-token") || args.get("token") || "HELLO"; var afb; var template; function log(smgs) { document.getElementById('log').innerHTML += '
'+smgs+'
'; } function getIcon(app) { if( app.icon.match(/^.*\.svg$/) ) { return '/icons/'+app.id; } else { return '/images/noicon.svg'; } } function display_applications(apps) { var appContainer = document.getElementById('AppContainer'); for( var i=0; i