File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,12 +208,12 @@ track = ->
208208 # Only ask for consent once per browser session
209209 Cookies .set (' analyticsConsentAsked' , ' 1' )
210210
211- new app.views.Notif ' AnalyticsConsent' , autoHide : null
211+ new app.views.Notif ' AnalyticsConsent' , autoHide : false
212212 return
213213
214214@ resetAnalytics = ->
215215 for cookie in document .cookie .split (/ ;\s ? / )
216216 name = cookie .split (' =' )[0 ]
217- if name[0 ] == ' _'
217+ if name[0 ] == ' _' && name[ 1 ] != ' _ '
218218 Cookies .expire (name)
219219 return
Original file line number Diff line number Diff line change @@ -80,6 +80,6 @@ class app.views.Document extends app.View
8080 when ' reboot' then app .reboot ()
8181 when ' hard-reload' then app .reload ()
8282 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 ()
8585 return
You can’t perform that action at this time.
0 commit comments