Created
September 20, 2018 19:36
-
-
Save praveen-me/20a86322951755913bc7679d63d8f6d1 to your computer and use it in GitHub Desktop.
Chrome Extension Blog
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
//Check Username is present in localStorage or not | |
if(localStorage.getItem('userNameKey') === null) { | |
userDetailsBlock.style.display = 'block'; | |
submitBtn.addEventListener('click', getDetails); | |
} else { | |
greetBlock.style.display = 'block'; | |
setGreet(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment