The example script AFB.js should look int the URLs
of the page if the token is set or not and then use it.
Bug-AGL: SPEC-2661
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Change-Id: I4adba8eac214130b425b6cd3c56fc1dc63543011
var initial = {
base: base.base || "api",
var initial = {
base: base.base || "api",
- token: base.token || initialtoken || "HELLO",
+ token: initialtoken || base.token || URLSearchParams(window.location.search).get('token') || "HELLO",
host: base.host || window.location.host,
url: base.url || undefined
};
host: base.host || window.location.host,
url: base.url || undefined
};