From ce759d74db565244537748a75bfd4a0c12b62e49 Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:22:52 +0200 Subject: [PATCH] Ignored the eslint error for the gtag function in the consent-banner script --- packages/web/src/scripts/consent-banner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web/src/scripts/consent-banner.js b/packages/web/src/scripts/consent-banner.js index f02cc281..03b55ac1 100644 --- a/packages/web/src/scripts/consent-banner.js +++ b/packages/web/src/scripts/consent-banner.js @@ -52,6 +52,7 @@ analyticsAcceptBtn.addEventListener("click", () => { * @param { Object } preferences */ function updateConsentMode(preferences) { + // eslint-disable-next-line no-undef gtag('consent', 'update', preferences) localStorage.setItem('consentMode', JSON.stringify(preferences)) } \ No newline at end of file