X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fapp.js;fp=afm-client%2Fapp%2FFrontend%2Fapp.js;h=24d55393d05a0656fba6dc4bd1279dfcf660613c;hb=3ba47d47a99984a1418ddf758d004e5e530f2195;hp=74f5d5f828f9bc05d8382538e53919a5ca46d355;hpb=0b8932c5e5fa8499d37099701df9ddd5c3907e41;p=src%2Fapp-framework-demo.git 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',