From 2c035253ab5dd6e855dfe9ee717ec72d2549cbcc Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 5 Jul 2022 13:25:38 -0600 Subject: [PATCH] download: Make fathom optional It seems to be blocked by ad blockers?? --- src/resources/js/download.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resources/js/download.js b/src/resources/js/download.js index 09639b9..a732f4d 100644 --- a/src/resources/js/download.js +++ b/src/resources/js/download.js @@ -154,7 +154,9 @@ $(function() { disableFields(true); - fathom.trackGoal('U9K2UTFV', 0); + if (fathom) { + fathom.trackGoal('U9K2UTFV', 0); + } $.ajax($(this).attr('href'), { method: "HEAD" }).done(function(data, status, jqxhr) { window.onbeforeunload = null; // disable exit confirmation before "redirecting" to download