sdk api: avoid getting referrer is same domain

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-12 11:54:26 +01:00
parent 832f30e5ee
commit 034be63ac0
2 changed files with 19 additions and 10 deletions

View File

@@ -15,9 +15,6 @@ function getHostname(url: string | undefined) {
export function parseReferrer(url: string | undefined) {
const match = referrers[getHostname(url)];
console.log('Parsing referrer', url);
console.log('Match', match);
return {
name: match?.name ?? '',
type: match?.type ?? 'unknown',