Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adjust for removal of IDBDatabaseException in Firefox nightlies.

  • Loading branch information...
commit bd27efd08629d9af15ff0b7ecde7cd1f28dfa230 1 parent c88f8b4
@jdm jdm authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 IDBStore.js
View
8 IDBStore.js
@@ -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{
Please sign in to comment.
Something went wrong with that request. Please try again.