From b83192da9cd7cb86bd08be2d914456065c603d63 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 16 Feb 2022 11:26:35 +0100 Subject: Rework launcher to use new appservice API Bug-AGL: SPEC-4250 Signed-off-by: Jose Dapena Paz Change-Id: I57c9348a9806804ca0ce1246edcd1bb2601a6cfe --- src/config.xml | 13 ++----------- src/js/app.js | 25 ++++++++++++------------- src/js/templates.js | 4 ++-- 3 files changed, 16 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/config.xml b/src/config.xml index f6138f0..349018f 100644 --- a/src/config.xml +++ b/src/config.xml @@ -1,21 +1,12 @@ - + HTML5 Launcher Launcher application for AGL based on html5 technologies Igalia, S.L. APL 2.0 - - - - - - - - - - + diff --git a/src/js/app.js b/src/js/app.js index d989f36..90f0e80 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,5 +1,5 @@ /* - * Copyright 2019 Igalia, S.L. + * Copyright 2019-2022 Igalia, S.L. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ import Mustache from 'mustache'; import { load as load_template } from './templates'; -import { afmMain, api, homescreen } from 'agl-js-api'; var configjson = require('../config.json'); var template; @@ -29,20 +28,23 @@ function render() { } function load_application_list() { - afmMain.runnables().then(function(apps) { + navigator.appService.getApplications(true, apps => { page.apps = []; for( var i=0; i