dobarkod / cookie-banner

JavaScript based cookie-info banner for complying with EU cookie law
MIT License
425 stars 85 forks source link

acceptOnFirstVisit: true #56

Closed ebisbe closed 7 years ago

ebisbe commented 7 years ago

acceptOnFirstVisit: true is not working for me. I'm using this implementation:

var options = {
    message: Locales[Laravel.language].layout.cookies.message,
    moreinfo: Locales[Laravel.language].layout.cookies.moreinfo,
    linkmsg: Locales[Laravel.language].layout.cookies.linkmsg,
    acceptOnFirstVisit: true
};
var cb = new Cookiebanner(options); cb.run();

How I can achieve that behavour??

ebisbe commented 7 years ago

I've found that the npm package is not the same.

zytzagoo commented 7 years ago

Yeah, looks like the npm cookiebanner package is from this fork: https://github.com/nephila/cookie-banner

ebisbe commented 7 years ago

yes and it's not updated any more. I've installed directly throught github url. But a npm package would be awesome

zytzagoo commented 7 years ago

It's doable, for sure, but:

At least that's how it looks to me from the outside, since I'm not deeply intimate with the npm ecosystem... Would love to hear some more thoughts from others on this!