mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Fixed referrer check. Closes #3016.
This commit is contained in:
parent
cd72fcacf4
commit
6ed660d8a7
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
document,
|
document,
|
||||||
history,
|
history,
|
||||||
} = window;
|
} = window;
|
||||||
const { hostname, href } = location;
|
const { hostname, href, origin } = location;
|
||||||
const { currentScript, referrer } = document;
|
const { currentScript, referrer } = document;
|
||||||
const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
|
const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
|
||||||
|
|
||||||
|
|
@ -260,7 +260,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentUrl = parseURL(href);
|
let currentUrl = parseURL(href);
|
||||||
let currentRef = referrer !== hostname ? referrer : '';
|
let currentRef = referrer.startsWith(origin) ? '' : referrer;
|
||||||
let title = document.title;
|
let title = document.title;
|
||||||
let cache;
|
let cache;
|
||||||
let initialized;
|
let initialized;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue