From ce4d3f4c0dc0e6bc60d64a701d5273a34411eba0 Mon Sep 17 00:00:00 2001 From: Gero Gerke <11deutron11@gmail.com> Date: Fri, 16 Nov 2018 15:32:27 +0100 Subject: [PATCH] Improve Accessibility --- assets/src/js/tracker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/src/js/tracker.js b/assets/src/js/tracker.js index d05becd6..206e2954 100644 --- a/assets/src/js/tracker.js +++ b/assets/src/js/tracker.js @@ -166,6 +166,8 @@ let url = config.trackerUrl || findTrackerUrl() let img = document.createElement('img'); + img.setAttribute('alt', ''); + img.setAttribute('aria-hidden', 'true'); img.src = url + stringifyObject(d); img.addEventListener('load', function() { let now = new Date(); @@ -208,4 +210,4 @@ // process existing queue queue.forEach((i) => fathom.apply(this, i)); -})() \ No newline at end of file +})()