From 0aca06978d07c7ad6590ce20fe77f168e05d29f7 Mon Sep 17 00:00:00 2001 From: Jacobo Aragunde PĂ©rez Date: Fri, 2 Aug 2019 00:31:04 +0200 Subject: Fix the call to homescreen/showWindow operation. The call requires that the "area" field is enclosed in a "parameter" key. Also, the app id must be provided without the version number (remove the "@version" suffix). Bug-AGL: SPEC-2647 --- src/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/app.js b/src/js/app.js index 48c2b57..7f92d4f 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -91,7 +91,8 @@ export function display(app) { var appId = app.getAttribute('app-id'); var ws = new afb.ws(function() { var api_verb = "homescreen/showWindow"; - var request = {application_id: appId, area: "normal.full"}; + var split_id = appId.split('@'); + var request = {application_id: split_id[0], parameter: {area: "normal.full"}}; ws.call(api_verb, request).then( function(obj) { log("success: " + obj.response); -- cgit 1.2.3-korg