Alex-D / Cookies-EU-banner

1kb vanilla JS script which manages cookies consent banner display like asked by GDPR
http://alex-d.github.io/Cookies-EU-banner/
MIT License
441 stars 57 forks source link

deleteTrackingCookies did not delete tracking cookies #22

Closed intersel closed 7 years ago

intersel commented 7 years ago

deleteTrackingCookies did not delete cookie as the 'name' variable contained the id in the array of trackingCookiesNames and was sent to deleteCookie function that did not found the cookie as it was a number and not a name...

So it is fixed in this version...

Alex-D commented 7 years ago

I've used functionnal map method insteed. Thanks for your PR! :)