Skip to content

Commit

Permalink
Docs: Add example of localStorage clear
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 26, 2021
1 parent e7ce285 commit c19a414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ <h3 class="mt-4">Use cookieConsent instance</h3>
delay: 500, // show cookie consent banner after 500ms
page_scripts: false, // disable third-party script management, see https://github.com/lmc-eu/cookie-consent-manager#third-party-scripts-loaded-via-script
},
onFirstAcceptOnlyNecessary: () => { // consent with only necessary cookies was just given by the user
window.localStorage.clear(); // clear everything in localStorage if it is not used for any 'necessary' data
},
}
);
});
Expand Down

0 comments on commit c19a414

Please sign in to comment.