Last active
October 11, 2015 22:33
-
-
Save brachycera/d10a1b5dc541e77850a7 to your computer and use it in GitHub Desktop.
Delete all local indexedDB
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
window.indexedDB.webkitGetDatabaseNames().onsuccess = function(sender,args){ | |
var r = sender.target.result; | |
for(var i in r) | |
{ | |
indexedDB.deleteDatabase(r[i]); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment