Last active
January 6, 2018 09:24
-
-
Save ZhangYiJiang/ee0b901fdf6e2190b09a5b06aa13d8eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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