diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-10 10:22:00 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-10 10:22:00 +0100 |
commit | f921693a645619a4b9cec63c0b65825b85b351ce (patch) | |
tree | f3ce67d685c14e591183f674ef129e0df098cc2a /afb-client/app/Frontend/app.js | |
parent | 662c8409cd101fa168727e4a10f7e49d9a85e5f6 (diff) |
Fix Warning
Diffstat (limited to 'afb-client/app/Frontend/app.js')
-rw-r--r-- | afb-client/app/Frontend/app.js | 2 |
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; } |