diff --git a/src/main/js/functions/urlUtils.ts b/src/main/js/functions/urlUtils.ts index bd343a2..3f984a3 100644 --- a/src/main/js/functions/urlUtils.ts +++ b/src/main/js/functions/urlUtils.ts @@ -6,7 +6,7 @@ */ export function parseQueryParams(query: string = ''): Record { const parsedQueryParams = {}; - const params = query.substr(query.startsWith('?') ? 1 : 0).split('&'); + const params = query.slice(query.startsWith('?') ? 1 : 0).split('&'); for (const param of params) { const [ key, value ] = param.split('=');