Created
February 17, 2012 21:28
-
-
Save jstrimpel/1855573 to your computer and use it in GitHub Desktop.
indexedDB Shim
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
(function () { | |
if (window.indexedDB) return false; | |
if (!window.openDatabase) throw "get yourself a decent browser"; | |
var indexedDB = function () {}; // begin shim | |
window.indexedDB = window.indexedDB || indexedDB; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment