Skip to content

Commit 82d4290

Browse files
adriaandotcomAdriaan
authored andcommitted
Run npm run watch
1 parent 44fc7e4 commit 82d4290

30 files changed

+63
-27
lines changed

dist/latest/cloudflare.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
/* Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2021-02-26; d48b) */
1+
/* Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2021-04-13; bb7c) */
22
/* eslint-env browser */
33

44
(function (window, overwriteOptions, baseUrl, apiUrlPrefix, version, saGlobal) {
5-
if (!window) return;
65
try {
6+
// Only load our script once, customers can still send multiple page views
7+
// with the sa_pageview function if they turn off auto collect.
8+
var loadedVariable = saGlobal + "_loaded";
9+
if (!window || window[loadedVariable] === true) return;
10+
window[loadedVariable] = true;
11+
712
/////////////////////
813
// PREDEFINED VARIABLES FOR BETTER MINIFICATION
914
//
@@ -68,6 +73,7 @@
6873
};
6974
if (bot) payload.bot = true;
7075

76+
7177
// Use User-Agent Client Hints for better privacy
7278
// https://web.dev/user-agent-client-hints/
7379
if (uaData) {

dist/latest/custom/app.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/latest/custom/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)