From ebf7d2992211cf1ff14343f2011d7bfbfe5c1ffd Mon Sep 17 00:00:00 2001 From: Enoc Date: Fri, 25 Jun 2021 23:50:05 -0600 Subject: [PATCH] fix name variable --- assets/javascripts/app/app.coffee | 2 +- assets/javascripts/lib/page.coffee | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 0aaf3c281a..b19068f8da 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -11,7 +11,7 @@ try @initErrorTracking() catch return unless @browserCheck() - @showAnaliticsOne = false + @analiticsAlreadyShown = false @el = $('._app') @localStorage = new LocalStorageStore @serviceWorker = new app.ServiceWorker if app.ServiceWorker.isEnabled() diff --git a/assets/javascripts/lib/page.coffee b/assets/javascripts/lib/page.coffee index bd4ca2ae98..966a4bd323 100644 --- a/assets/javascripts/lib/page.coffee +++ b/assets/javascripts/lib/page.coffee @@ -202,7 +202,9 @@ track = -> return unless app.config.env == 'production' return if app.analiticsAlreadyShown + # only show the analitics cookie notification once app.analiticsAlreadyShown = true + consentGiven = Cookies.get('analyticsConsent') consentAsked = Cookies.get('analyticsConsentAsked')