Wruczek / Bootstrap-Cookie-Alert

A simple, good looking cookie alert built for Bootstrap 3/4. No dependencies required.
https://wruczek.github.io/Bootstrap-Cookie-Alert/demo-bs5.html
MIT License
240 stars 50 forks source link

An event that is fired if the user has already accepted cookies? #15

Open shylor opened 4 years ago

shylor commented 4 years ago

It seems window.dispatchEvent(new Event("cookieAlertAccept"))` only fires when the users clicks the accept. I feel it would be great to have this fire along with another event if not this one when the user loads the page. This would allow things like ads to turn on or other events to happen each page load after they have accepted.

I might try to hack this into my copy and submit it here.