fix(tracker): Correctly extract pathname

This commit is contained in:
Aldo Román 2023-10-12 00:41:58 +02:00
parent e8da04bebe
commit aef4b23cce

View File

@ -42,7 +42,13 @@
};
};
const getPath = url => new URL(url).pathname;
const getPath = url => {
try {
return new URL(url).pathname;
} catch (e) {
return url;
}
};
const getPayload = () => ({
website,