diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2019-08-02 00:31:04 +0200 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2019-08-02 00:38:35 +0200 |
commit | 0aca06978d07c7ad6590ce20fe77f168e05d29f7 (patch) | |
tree | 7f0f59aa14efd861a0246a106cf83346d6cfc26a /src | |
parent | e035b931c1fb6508ace7db4b1975e60d5c4be8dd (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); |