download: Make fathom optional

It seems to be blocked by ad blockers??
This commit is contained in:
Matthew Holt 2022-07-05 13:25:38 -06:00
parent 52de5be0f8
commit 2c035253ab
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

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