mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing new immoscout url handling
This commit is contained in:
@@ -159,10 +159,10 @@ export function convertWebToMobile(webUrl) {
|
||||
const { query: webParams } = queryString.parseUrl(webUrl, { arrayFormat: 'comma' });
|
||||
delete webParams['enteredFrom'];
|
||||
|
||||
// Check for unsupported parameters
|
||||
// Remove unsupported parameters
|
||||
Object.keys(webParams).forEach((key) => {
|
||||
if (!paramNameMap[key]) {
|
||||
throw new Error(`Unsupported Web-API parameter: "${key}"`);
|
||||
delete webParams[key];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user