Skip to content

Instantly share code, notes, and snippets.

@potch
Created November 15, 2013 20:44
Show Gist options
  • Select an option

  • Save potch/7491249 to your computer and use it in GitHub Desktop.

Select an option

Save potch/7491249 to your computer and use it in GitHub Desktop.
(function() {
console.log('connecting');
var req = indexedDB.open('asyncStorage', 0);
req.onsuccess = function() {
console.log('connected to asyncStorage')
var db = req.result;
var delReq = db.deleteObjectStore('keyvaluepairs');
delReq.onsuccess = function () {
console.log('success!');
}
delReq.onerror = function () {
console.log('error!' + req.error.name);
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment