diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-09 18:55:40 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-09 18:55:40 +0100 |
commit | 3ba47d47a99984a1418ddf758d004e5e530f2195 (patch) | |
tree | 2f0fa75038dafc1d23ea661a32a09568bdd5b1d0 /afm-client/app/Frontend | |
parent | 0b8932c5e5fa8499d37099701df9ddd5c3907e41 (diff) |
Cleanup
Diffstat (limited to 'afm-client/app/Frontend')
-rw-r--r-- | afm-client/app/Frontend/app.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/afm-client/app/Frontend/app.js b/afm-client/app/Frontend/app.js index 74f5d5f..24d5539 100644 --- a/afm-client/app/Frontend/app.js +++ b/afm-client/app/Frontend/app.js @@ -1,12 +1,15 @@ (function() { 'use strict'; - function ParseQueryString () { + + function ParseQueryString () { var qd = {}; location.search.substr(1).split("&").forEach(function(item) { - var k = item.split("=")[0], v = decodeURIComponent(item.split("=")[1]); (k in qd) ? qd[k].push(v) : qd[k] = [v]; + var k = item.split("=")[0]; + var v = decodeURIComponent(item.split("=")[1]); + (k in qd) ? qd[k].push(v) : qd[k] = [v]; }); return qd; - } + } angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html 'ui.router', |