Changing for...in loop for performance.
This commit is contained in:
parent
28b402d59b
commit
88414d61f7
1 changed files with 5 additions and 3 deletions
|
|
@ -44,10 +44,12 @@ export default {
|
|||
parseQueryParms() {
|
||||
// Dump the query string parameters into an array. Remove casing on the key for easy compare.
|
||||
const queryStringParams = [];
|
||||
// TODO: Modify to not iterate entire prototype chain
|
||||
for (const param in this.$route.query) {
|
||||
const params = Object.keys(this.$route.query);
|
||||
|
||||
params.forEach((param) => {
|
||||
queryStringParams[param.toLowerCase()] = this.$route.query[param];
|
||||
}
|
||||
});
|
||||
|
||||
return queryStringParams;
|
||||
},
|
||||
async validateClientTagOnEntry() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue