Skip to content

Commit

Permalink
fix variable's name
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterEnoc committed Jun 26, 2021
1 parent 5b57737 commit fb09d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/app/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions assets/javascripts/lib/page.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit fb09d87

Please sign in to comment.