Skip to content

Instantly share code, notes, and snippets.

@greenido
Created October 5, 2012 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save greenido/3839575 to your computer and use it in GitHub Desktop.
Save greenido/3839575 to your computer and use it in GitHub Desktop.
var dbName = "todo";
var dbVersion = 1.0;
var todoDB = {};
var indexedDB = window.indexedDB ||
window.webkitIndexedDB ||
window.mozIndexedDB;
todoDB.indexedDB = {};
todoDB.indexedDB.db = null;
if ('webkitIndexedDB' in window) {
window.IDBTransaction = window.webkitIDBTransaction;
window.IDBKeyRange = window.webkitIDBKeyRange;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment