Skip to content

Commit ebf7d29

Browse files
committed
fix name variable
1 parent 5b57737 commit ebf7d29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

assets/javascripts/app/app.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try @initErrorTracking() catch
1212
return unless @browserCheck()
1313

14-
@showAnaliticsOne = false
14+
@analiticsAlreadyShown = false
1515
@el = $('._app')
1616
@localStorage = new LocalStorageStore
1717
@serviceWorker = new app.ServiceWorker if app.ServiceWorker.isEnabled()

assets/javascripts/lib/page.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ track = ->
202202
return unless app.config.env == 'production'
203203
return if app.analiticsAlreadyShown
204204

205+
# only show the analitics cookie notification once
205206
app.analiticsAlreadyShown = true
207+
206208
consentGiven = Cookies.get('analyticsConsent')
207209
consentAsked = Cookies.get('analyticsConsentAsked')
208210

0 commit comments

Comments
 (0)