From d41fb1edd14803bd22cfc2e8437087607bf99e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 1 Apr 2023 20:31:44 +0200 Subject: [PATCH] fix --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 72a5194..12d6137 100644 --- a/index.js +++ b/index.js @@ -196,7 +196,7 @@ function showImages() { if (emptyindex > -1){ let changingelement = $("#" + idcko); changingelement.html(targetElement.html()); - umami.trackEvent('Clicked sign', { type: 'clicksign', datacode: $(this).getAttribute("datacode") }); + umami.trackEvent('Clicked sign', { type: 'clicksign', datacode: targetElement.getAttribute("datacode") }); } } @@ -205,7 +205,7 @@ function showImages() { let [emptyindex, idcko] = getEmptyIndex($(".finalletterplace"), this); if (emptyindex > -1){ let changingelement = $("#" + idcko); - umami.trackEvent('Clicked letter', { type: 'clickletter', datacode: $(this).getAttribute("datacode") }); + umami.trackEvent('Clicked letter', { type: 'clickletter', datacode: targetElement.getAttribute("datacode") }); changingelement.html(targetElement.html()); }