Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store negative cookie preference #52

Open
bluelhf opened this issue Sep 17, 2023 · 4 comments
Open

store negative cookie preference #52

bluelhf opened this issue Sep 17, 2023 · 4 comments
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. frontend Issues that require frontend code changes (HTML, CSS, JS) priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@bluelhf
Copy link

bluelhf commented Sep 17, 2023

when an user rejects cookies, we should keep their preference in localStorage so that they aren't asked again

probably add some stuff here:

cookiesDeny.addEventListener('click', () => {
cookiesBar.remove();
});

and here:
let isCookiesAccepted = getCookie("cookies-accepted") === "true";

and here as well:
if (!isCookiesAccepted) {

:)

@Moderocky
Copy link
Member

...but the point of the Privacy and Electronic Communications Directive Regulation 6 is that if the user rejects cookies you are not allowed to use local storage...

@bluelhf
Copy link
Author

bluelhf commented Sep 17, 2023

...but the point of the Privacy and Electronic Communications Directive Regulation 6 is that if the user rejects cookies you are not allowed to use local storage...

then a "remember?" checkbox? in this case, the storage of the preference would be strictly necessary for the provision of an information society service requested by the subscriber or user

@AyhamAl-Ali
Copy link
Member

This is how we inforce them to use our cookies 😈 jk

@AyhamAl-Ali AyhamAl-Ali added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). frontend Issues that require frontend code changes (HTML, CSS, JS) labels Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. frontend Issues that require frontend code changes (HTML, CSS, JS) priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

4 participants