mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Fixed comments
This commit is contained in:
parent
241905c5fe
commit
5318accc6f
3 changed files with 38 additions and 48 deletions
|
|
@ -19,7 +19,7 @@
|
|||
let e = umami.methods[t];
|
||||
umami[e] = umami.factory(e);
|
||||
}
|
||||
umami.load = function(umamiScript, umamiUUID, skipAuto, isDebug) {
|
||||
umami.load = function(umamiScript, umamiUUID, skipAuto) {
|
||||
const scriptElement = document.createElement('script');
|
||||
scriptElement.type = 'text/javascript';
|
||||
scriptElement.defer = true;
|
||||
|
|
@ -28,15 +28,12 @@
|
|||
if (skipAuto) {
|
||||
scriptElement.setAttribute('data-skip-auto', 'true');
|
||||
}
|
||||
if (isDebug) {
|
||||
scriptElement.setAttribute('data-debug', 'true');
|
||||
}
|
||||
scriptElement.src = umamiScript;
|
||||
const otherScript = document.getElementsByTagName('script')[0];
|
||||
otherScript.parentNode.insertBefore(scriptElement, otherScript);
|
||||
};
|
||||
|
||||
umami.load('${document.location.origin}/umami.js', '${values.website_uuid}', false, false);
|
||||
umami.load('${document.location.origin}/umami.js', '${values.website_uuid}', false);
|
||||
}
|
||||
}
|
||||
})(window);
|
||||
Loading…
Add table
Add a link
Reference in a new issue