This commit is contained in:
Steve Faulkner
2021-01-03 21:49:50 -06:00
parent f6d6222e5c
commit 2e1665f093
3 changed files with 5 additions and 45 deletions

View File

@@ -1,7 +1,5 @@
const parentParams = new URLSearchParams(window.parent.location.search);
export function extractFeatures(params?: URLSearchParams): { [key: string]: string } {
params = params || parentParams;
params = params || new URLSearchParams(window.parent.location.search);
const featureParamRegex = /feature.(.*)/i;
const features: { [key: string]: string } = {};
params.forEach((value: string, param: string) => {