fix(tracker): Correctly extract pathname

This commit is contained in:
Aldo Román 2023-10-10 15:06:48 +02:00
parent fd5d5c692e
commit a555d59153

View File

@ -43,10 +43,7 @@
}; };
const getPath = url => { const getPath = url => {
if (url.substring(0, 4) === 'http') { new URL(url).pathname;
return '/' + url.split('/').splice(3).join('/');
}
return url;
}; };
const getPayload = () => ({ const getPayload = () => ({