AFB.js: Improve default token discovery 37/21937/1
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 9 Jul 2019 15:27:03 +0000 (17:27 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 23 Jul 2019 12:18:41 +0000 (14:18 +0200)
commit056c53da68eaa007a7bcabf77ef3205b6ff04ca1
tree8fe6a777a6694e2bb19110b12c90a9257b695bd9
parentd325856a3cb88b18a1726e30309543f0154df9de
AFB.js: Improve default token discovery

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
test/AFB.js