fix(tracker): Correctly extract pathname
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user