summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/AFB.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/AFB.js b/test/AFB.js
index 65648437..4c500b99 100644
--- a/test/AFB.js
+++ b/test/AFB.js
@@ -21,7 +21,7 @@ if (typeof base != "object")
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
};