mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
fix(tracker): Correctly extract pathname
This commit is contained in:
parent
e8da04bebe
commit
aef4b23cce
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user