Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Local storage feature detection
if (Modernizr.localstorage) {
$('#LocalStorageStatus').html('localStorage is available');
}
else {
$('#LocalStorageStatus').html('looks like cookies');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment