Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
AFB.js: Improve default token discovery
[src/app-framework-binder.git]
/
test
/
AFB.js
diff --git
a/test/AFB.js
b/test/AFB.js
index
6564843
..
4c500b9
100644
(file)
--- a/
test/AFB.js
+++ b/
test/AFB.js
@@
-21,7
+21,7
@@
if (typeof base != "object")
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
};