Skip to content

Instantly share code, notes, and snippets.

@ZhangYiJiang
Last active January 6, 2018 09:24
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 ZhangYiJiang/ee0b901fdf6e2190b09a5b06aa13d8eb to your computer and use it in GitHub Desktop.
Save ZhangYiJiang/ee0b901fdf6e2190b09a5b06aa13d8eb to your computer and use it in GitHub Desktop.
var c = `
localStorage.clear();
localStorage.setItem('reduxState', JSON.stringify(${localStorage.getItem('reduxState')}));
window.location.reload();`;
if (typeof copy === 'function') {
console.info('Go to https://deploy-preview-669--nusmods.netlify.com/ and paste the code that has been copied into the console');
copy(c);
} else {
console.info('Go to https://deploy-preview-669--nusmods.netlify.com/ and paste this into the console');
console.log(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment