mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-24 19:16:34 +00:00

* Use authorize page if auth provider * Add webcomponent polyfill * More fixes * ES5 fix * Lint * Use redirect_uri * upgrade uglify to fix tests? * Update browsers used for testing
12 lines
359 B
JavaScript
12 lines
359 B
JavaScript
export default function parseQuery(queryString) {
|
|
const query = {};
|
|
const items = queryString.split('&');
|
|
for (let i = 0; i < items.length; i++) {
|
|
const item = items[i].split('=');
|
|
const key = decodeURIComponent(item[0]);
|
|
const value = item.length > 1 ? decodeURIComponent(item[1]) : undefined;
|
|
query[key] = value;
|
|
}
|
|
return query;
|
|
}
|