apply prettier formating
This commit is contained in:
committed by
Aleksey Gurianov
parent
5d1201351a
commit
2df3aa01d4
@@ -1,8 +1,12 @@
|
||||
const querySettings = window.location.search.substr(1).split('&').reduce((acc, param) => {
|
||||
const pair = param.split('=');
|
||||
acc[pair[0]] = decodeURIComponent(pair[1]);
|
||||
return acc;
|
||||
}, {}) || {};
|
||||
const querySettings =
|
||||
window.location.search
|
||||
.substr(1)
|
||||
.split('&')
|
||||
.reduce((acc, param) => {
|
||||
const pair = param.split('=');
|
||||
acc[pair[0]] = decodeURIComponent(pair[1]);
|
||||
return acc;
|
||||
}, {}) || {};
|
||||
|
||||
export const siteId = querySettings['site_id'];
|
||||
export const url = querySettings['url'];
|
||||
|
||||
Reference in New Issue
Block a user