Code Monkey home page Code Monkey logo

Comments (3)

paooolino avatar paooolino commented on July 17, 2024

I'm struggling with a similar issue.
I'm getting "Uncaught Error: ConsentString - Unsupported version 0 in the string to decode".
The consent string I get is "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
I get this with both Chrome and Firefox BUT only on a specific website.
I fear there's something with the browser compatibility mode while executing JS.

from gdpr-transparency-and-consent-framework.

paooolino avatar paooolino commented on July 17, 2024

my problem is caused by this version of Prototype.js

Prototype JavaScript framework, version 1.6.0.2

more on this later

from gdpr-transparency-and-consent-framework.

paooolino avatar paooolino commented on July 17, 2024

I found my issue was caused by the prototype.js overwriting the Array.reduce() method which is defined as follows

  reduce: function() {
    return this.length > 1 ? this : this[0];
  },

to solve this, I will re-assign the correct native implementation of Array.reduce() on top of my CMP code

Array.prototype.reduce = function(callback, initialVal) {
    var accumulator = (initialVal === undefined) ? undefined : initialVal;
    for (var i = 0; i < this.length; i++) {
        if (accumulator !== undefined)
            accumulator = callback.call(undefined, accumulator, this[i], i, this);
        else
            accumulator = this[i];
    }
    return accumulator;
};

hope this may help you as well.

from gdpr-transparency-and-consent-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.