summaryrefslogtreecommitdiffstats
path: root/afb-client/app/Frontend/app.js
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-02-10 10:22:00 +0100
committerFulup Ar Foll <fulup@iot.bzh>2016-02-10 10:22:00 +0100
commitf921693a645619a4b9cec63c0b65825b85b351ce (patch)
treef3ce67d685c14e591183f674ef129e0df098cc2a /afb-client/app/Frontend/app.js
parent662c8409cd101fa168727e4a10f7e49d9a85e5f6 (diff)
Fix Warning
Diffstat (limited to 'afb-client/app/Frontend/app.js')
-rw-r--r--afb-client/app/Frontend/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/afb-client/app/Frontend/app.js b/afb-client/app/Frontend/app.js
index 6360b75..6772243 100644
--- a/afb-client/app/Frontend/app.js
+++ b/afb-client/app/Frontend/app.js
@@ -6,7 +6,7 @@
location.search.substr(1).split("&").forEach(function(item) {
var k = item.split("=")[0];
var v = decodeURIComponent(item.split("=")[1]);
- (k in qd) ? qd[k].push(v) : qd[k] = [v];
+ if (k in qd) qd[k].push(v); else qd[k] = [v];
});
return qd;
}