humanswitch / consentcookie

Open source AVG solution for websites
Apache License 2.0
27 stars 10 forks source link

ConsentCookie API changes #23 regression bug #44

Closed StevenChoo closed 6 years ago

StevenChoo commented 6 years ago

Description

Return of ConsentCookie.get() does not contain a public variables consents with the key-value mapping of the Consents mapped by the id

Expected Behavior

image

Actual Behavior

image

Possible Fix

Make the API backwards compatible with 0.6.4

Steps to Reproduce

  1. load the demo page
  2. from console after ConsentCookie has been initialized: ConsentCookie.get()

Context

GTM implementation does not work properly

Your Environment

n.a.

StevenChoo commented 6 years ago

Fixed backwards compatibility

image

@christianvriens Could you confirm this:

https://cdn.humanswitch.services/cc/consentcookie/app/snapshot/adc70bf05e62049cfe388fcb56b377bb8a91ebb1/consentcookie.min.js

christianvriens commented 6 years ago

Tested

Is solved!