fix(tracker): prevent multiple initialization when script injected more than once

This commit is contained in:
Chairil Fauzi Firmansyah 2025-09-04 16:23:41 +07:00
parent 1b6da0aaa0
commit 29c384f0bb

View file

@ -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 },