browserCheck.js
/**
 * Set up Modernizr and wait for it to finish before running the checks
 */
Set up Modernizr and wait for it to finish before running the checks
Set up Modernizr and wait for it to finish before running the checks
function initCheck() {
  if (Modernizr && Modernizr.indexeddb === undefined) {
    Modernizr.on('indexeddb', initCheck);
  } else {
    runBrowserCheck();
  }
}
function initCheck ( ) { if ( Modernizr && Modernizr . indexeddb === undefined ) { Modernizr . on ( 'indexeddb' , initCheck ) ; } else { runBrowserCheck ( ) ; } }
Set up Modernizr and wait for it to finish before running the checks
Set up Modernizr and wait for it to finish before running the checks