Skip to content

Commit 949c4ce

Browse files
adriaandotcomAdriaan
authored andcommitted
Run npm run build
1 parent 3e8981e commit 949c4ce

30 files changed

+46
-45
lines changed

dist/latest/cloudflare.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2021-04-20; e8aa; v2) */
1+
/* Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2021-07-30; b6b7; v2) */
22
/* eslint-env browser */
33

44
(function (window, overwriteOptions, baseUrl, apiUrlPrefix, version, saGlobal) {
@@ -263,7 +263,8 @@
263263
//
264264

265265
// Find the script element where options can be set on
266-
var scriptElement = doc.querySelector('script[src*="' + baseUrl + '"]');
266+
var scriptElement =
267+
doc.currentScript || doc.querySelector('script[src*="' + baseUrl + '"]');
267268
var attr = function (scriptElement, attribute) {
268269
return scriptElement && scriptElement.getAttribute("data-" + attribute);
269270
};

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)