Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example error for topic: webapi, feature: IDBFactory #31

Open
rickdog opened this issue May 21, 2015 · 0 comments
Open

Example error for topic: webapi, feature: IDBFactory #31

rickdog opened this issue May 21, 2015 · 0 comments

Comments

@rickdog
Copy link

rickdog commented May 21, 2015

https://docs.webplatform.org/wiki/apis/indexeddb/IDBFactory#Properties

current example uses undefined variable ====> if ( getIndexHandle == null ) {

function getIndexedDBHandle() {
   var oResult = null; 
   if ( window.indexedDB ) {
      oResult = window.indexedDB;
   } else if ( window.mozIndexedDB ) { 
      oResult = window.mozIndexedDB;
   } else if ( window.webkitIndexedDB ) {
      oResult = window.webkitIndexedDB;
   }
   return oResult;
}

var ixHandle = getIndexedDBHandle();
if ( getIndexHandle == null ) {   <====  should be ixHandle
   doFallback();
} else {
   doIndexedDBWork(};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant