mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
fix(tracker): prevent multiple initialization when script injected more than once
This commit is contained in:
parent
1b6da0aaa0
commit
29c384f0bb
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
(window => {
|
(window => {
|
||||||
|
if (window.__umami_tracker_loaded) return;
|
||||||
|
window.__umami_tracker_loaded = true;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
screen: { width, height },
|
screen: { width, height },
|
||||||
navigator: { language, doNotTrack: ndnt, msDoNotTrack: msdnt },
|
navigator: { language, doNotTrack: ndnt, msDoNotTrack: msdnt },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue