Skip to content

Commit

Permalink
Merge pull request #7 from jdm/dev
Browse files Browse the repository at this point in the history
Adjust for removal of IDBDatabaseException in Firefox nightlies.
  • Loading branch information
jensarps committed Apr 18, 2012
2 parents c88f8b4 + bd27efd commit bf30176
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion IDBStore.js
Expand Up @@ -87,7 +87,13 @@
}

openRequest.onerror = hitch(this, function(error){
if(error.target.errorCode == 12){ // TODO: Use const
var gotVersionErr = false;
if('error' in error.target) {
gotVersionErr = error.target.error.name == "VersionError";
} else if('errorCode' in error.target) {
gotVersionErr = error.target.errorCode == 12; // TODO: Use const
}
if(gotVersionErr){
this.dbVersion++;
setTimeout(hitch(this, 'openDB'));
}else{
Expand Down

0 comments on commit bf30176

Please sign in to comment.