Skip to content

Commit

Permalink
fix(util): array length check
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanvdmerwe committed Mar 7, 2016
1 parent d77e8d9 commit 9dc3840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ionic/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export function getQuerystring(url: string): any {
const queries = url.slice(startIndex + 1).split('&');
queries.filter((param) => { return param.indexOf('=') > 0; }).forEach((param) => {
var split = param.split('=');
queryParams[split[0].toLowerCase()] = split[1].split('#')[0];
if(split.length > 1)
queryParams[split[0].toLowerCase()] = split[1].split('#')[0];
});
}
}
Expand Down

0 comments on commit 9dc3840

Please sign in to comment.