Skip to content

Instantly share code, notes, and snippets.

@jason-murray
Created March 2, 2023 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jason-murray/7090060196189a61ca435fcc29978d64 to your computer and use it in GitHub Desktop.
Save jason-murray/7090060196189a61ca435fcc29978d64 to your computer and use it in GitHub Desktop.
if (JSON.parse(localStorage.getItem('force-reconsent-finished')) !== true) {
document.cookie = '_vfa=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/';
localStorage.setItem('force-reconsent-finished', 'true');
console.log ('Force Reconsent Complete');
} else {
console.log ('Force Reconsent Not Required');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment