Closed sudhir600 closed 5 years ago
Since the code contains that:
I did not understand how this cannot works :/
I did not think to add some watcher since it's not usefull in production.
As I re-read this issue, I think I understand your point: you are about to say that false and null are the same, but... no. False says that you decline; true, you accept, and null you had not make a choice yet.
So, behavior is OK and it's not a bug.
Hi Alex, Great work. BDW, I found a minor bug that, if any script or manually change cookie value
"hasConsent=false
" and then refresh the page, it didn't show cookie banner. when i simply empty thehasConsent
value, it start showing banner. so my point is either empty value or false is convey the same meaning for banner. isn't?why not put an eventLister, I don't know how to listen cookie change but recently i work on how to detect any changes happen in LocalStorage.
Hope you will find any solution for cookie for too.