Created
October 27, 2010 14:38
-
-
Save bigsan/649143 to your computer and use it in GitHub Desktop.
JavaScript: Checking for offline data functionality
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
// Key/value storage | |
if ('localStorage' in window) { ... } | |
if ('sessionStorage' in window) { ... } | |
// SQL API | |
if ('openDatabase' in window) { ... } | |
// Offline application cache | |
if ('applicationCache' in window) { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment