Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TechWithTy/3959e2ed5e53cb40e5600ed68d8e93c6 to your computer and use it in GitHub Desktop.
Save TechWithTy/3959e2ed5e53cb40e5600ed68d8e93c6 to your computer and use it in GitHub Desktop.
if (
typeof localStorage !== 'undefined' &&
localStorage.getItem('FreeShippingSiteWide') === null
) {
// Your code here
this.notify();
localStorage.setItem('FreeShippingSiteWide', true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment