From edd8b7bd57b0a5b6763c618044cbdcd0d945434b Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 16 Jun 2022 15:32:41 +0200 Subject: [PATCH] fix script url in code example --- .../content/articles/0230-consent-tool.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/homepage/content/articles/0230-consent-tool.md b/homepage/content/articles/0230-consent-tool.md index 20466df..8246247 100644 --- a/homepage/content/articles/0230-consent-tool.md +++ b/homepage/content/articles/0230-consent-tool.md @@ -108,17 +108,17 @@ Next deploy the application to a domain like `consent.example.com`. On the host which exposed `window.ConsentClient`. In your client side code, construct a new client instance pointing at your deployment and request user consent for the desired scope(s): ```jsx -const client = new window.ConsentClient({ url: '[https://consent.example.com](https://consent.example.com/)' }) +const client = new window.ConsentClient({ url: 'https://consent.example.com' }) client -.acquire('analytics', 'marketing') -.then((decisions) => { -if (decisions.analytics) { -// load analytics data -} -if (decisions.marketing) { -// trigger marketing tools -} -}) + .acquire('analytics', 'marketing') + .then((decisions) => { + if (decisions.analytics) { + // load analytics data + } + if (decisions.marketing) { + // trigger marketing tools + } + }) ``` ##### The *Offen Consent Tool* further allows you to create the binary yourself and provides a development setup. It can also be used as a library and be integrated into any web server written in Golang.