[devdocsgjs/main: 100/239] Respect Do Not Track and Global Privacy Control
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 100/239] Respect Do Not Track and Global Privacy Control
- Date: Fri, 8 Apr 2022 07:47:36 +0000 (UTC)
commit 3e2b0f9ac64f811e64b77220eeb84709686280b0
Author: Simon Legner <Simon Legner gmail com>
Date: Fri Jan 7 19:56:43 2022 +0100
Respect Do Not Track and Global Privacy Control
assets/javascripts/lib/page.coffee | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/assets/javascripts/lib/page.coffee b/assets/javascripts/lib/page.coffee
index 7a5329f6..5ad89b32 100644
--- a/assets/javascripts/lib/page.coffee
+++ b/assets/javascripts/lib/page.coffee
@@ -200,6 +200,8 @@ page.track = (fn) ->
track = ->
return unless app.config.env == 'production'
+ return if navigator.doNotTrack == '1'
+ return if navigator.globalPrivacyControl
consentGiven = Cookies.get('analyticsConsent')
consentAsked = Cookies.get('analyticsConsentAsked')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]