mirror of
https://github.com/umami-software/umami.git
synced 2026-05-30 06:47:25 +00:00
Merge pull request #3606 from fauzora/fix/tracker-single-init
fix(tracker): prevent multiple initialization when script injected more than once
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
(window => {
|
||||
if (window.__umami_tracker_loaded) return;
|
||||
window.__umami_tracker_loaded = true;
|
||||
|
||||
const {
|
||||
screen: { width, height },
|
||||
navigator: { language, doNotTrack: ndnt, msDoNotTrack: msdnt },
|
||||
|
||||
Reference in New Issue
Block a user