humanswitch/consentcookie

bug: consent initstate alwayson not working

StevenChoo opened this issue · 1 comments

Description

A consent initialized with a consent having initstate:alwayson does not have the alwayson state.
#6 describes the change initstate:disabled to initstate:alwayson.
This is implemented in 0.6 but apparantly not working.

Expected Behavior

initstate:alwayson should behave as "Always on"

Actual Behavior

Nothing happens. The inistate is not used

Possible Fix

n.a.

Steps to Reproduce

  1. Intialize ConsentCookie with using the following
  ConsentCookie.init({
    'apps': {
      'endpoint': '',
      'consent': {
        'cc': {
          'initstate': 'disabled'
        },
        'iq': {
          'initstate': 'optout'
        },
        'ga': {
          'initstate': 'optin'
        },
        'gtm': {
          'initstate': 'alwayson'
        }
      }
    },
    'design': {
      'layout': {
        'position': 'right'
      },
      'colorscheme': {
        'primary': '',
        'secondary': '',
        'tertiary': '',
      }
    },
    'resources': {
      'nl': {
        'info': {
          "title":"",
          "text":""
        }
      }
    }
  });

Context

n.a.

Your Environment

On all

fixed by #15