mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-05 17:05:46 +01:00
Fixed referrer check. Closes #3016.
This commit is contained in:
parent
cd72fcacf4
commit
6ed660d8a7
@ -6,7 +6,7 @@
|
||||
document,
|
||||
history,
|
||||
} = window;
|
||||
const { hostname, href } = location;
|
||||
const { hostname, href, origin } = location;
|
||||
const { currentScript, referrer } = document;
|
||||
const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
|
||||
|
||||
@ -260,7 +260,7 @@
|
||||
}
|
||||
|
||||
let currentUrl = parseURL(href);
|
||||
let currentRef = referrer !== hostname ? referrer : '';
|
||||
let currentRef = referrer.startsWith(origin) ? '' : referrer;
|
||||
let title = document.title;
|
||||
let cache;
|
||||
let initialized;
|
||||
|
Loading…
Reference in New Issue
Block a user