File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,12 @@ track = ->
208
208
# Only ask for consent once per browser session
209
209
Cookies .set (' analyticsConsentAsked' , ' 1' )
210
210
211
- new app.views.Notif ' AnalyticsConsent' , autoHide : null
211
+ new app.views.Notif ' AnalyticsConsent' , autoHide : false
212
212
return
213
213
214
214
@ resetAnalytics = ->
215
215
for cookie in document .cookie .split (/ ;\s ? / )
216
216
name = cookie .split (' =' )[0 ]
217
- if name[0 ] == ' _'
217
+ if name[0 ] == ' _' && name[ 1 ] != ' _ '
218
218
Cookies .expire (name)
219
219
return
Original file line number Diff line number Diff line change @@ -80,6 +80,6 @@ class app.views.Document extends app.View
80
80
when ' reboot' then app .reboot ()
81
81
when ' hard-reload' then app .reload ()
82
82
when ' reset' then app .reset () if confirm (' Are you sure you want to reset DevDocs?' )
83
- when ' accept-analytics' then Cookies .set (' analyticsConsent' , ' 1' ) && app .reboot ()
84
- when ' decline-analytics' then Cookies .set (' analyticsConsent' , ' 0' ) && app .reboot ()
83
+ when ' accept-analytics' then Cookies .set (' analyticsConsent' , ' 1' , expires : 1e8 ) && app .reboot ()
84
+ when ' decline-analytics' then Cookies .set (' analyticsConsent' , ' 0' , expires : 1e8 ) && app .reboot ()
85
85
return
You can’t perform that action at this time.
0 commit comments