-
-
Save JamesMaroney/1978696 to your computer and use it in GitHub Desktop.
GetConfig
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
function getConfigVal(key, defaultValue){ | |
if(localStorage.getItem('fixtureMode') !== true) return defaultValue; | |
var localStorageValue = localStorage.getItem(key); | |
return localStorageValue === null ? defaultValue : localStorageValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment