Created
December 11, 2014 21:54
-
-
Save ChrisLTD/42f987a11c5974ccc9b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Clear local storage is hash in URL is #clear_ls | |
if( window.location.hash.toLowerCase() == "#clear_ls" ) { | |
localStorage.clear(); | |
console.log('local storage cleared'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment