Allow to pass parameters to the constructor
Situphen opened this issue · comments
Situphen commented
Actually, the code is unyielding. We can't change the IDs of the buttons and the link, or change the duration of the cookie. I think it would be better if we can pass an object to the constructor like :
var parameters = {
"too": bar,
};
var cookiesBanner = new CookiesCnilBanner(analyticFunction, parameters);
Alexandre Demode commented
We can't change the IDs of the buttons and the link
It's a choice.
or change the duration of the cookie
Maximum is 13 months defined by CNIL, i put this to it maximum.