Viewing 1 post (of 1 total)
  • Author
    Posts
  • #41572
    StevenP94
    Participant

    Hi, I have this situation: request to accept cookies come’s up on every page, ignoring the ‘accept’ response.
    I look in the js file and found this problem:

     // get cookie value
                    this.getStatus = function ( bool ) {
                            var value = "; " + document.cookie,
                                    parts = value.split( '; cookie_notice_accepted=' );
    
                            if ( parts.length === 2 ) {

    The problem is that I have more than 2 parts, because I have a wordpress site inside another worpress site, and both have this plugin.
    In my cookies I found 2 cookie_notice_accepted with the same domain and different path.
    I patched the code changing from
    if ( parts.length === 2 ) {
    to
    if ( parts.length >= 2 ) {
    but probably there is a better solution.

    Hope this will help to have a better plugin!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.