mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
fix(#93): update logic to display consent when needed
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (!cookiesAccepted) {
|
if (!cookiesAccepted) {
|
||||||
const storedValue = localStorage.getItem('cookiesAccepted');
|
const storedValue = localStorage.getItem('cookiesAccepted');
|
||||||
showBanner = storedValue !== 'true';
|
showBanner = storedValue === null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user