www/mainHandle.js
function StorageHandle() {
  this.storageSupport = storageSupportAnalyse();
  switch (this.storageSupport) {
    case 0:
      var exec = require('cordova/exec');
      this.storageHandlerDelegate = exec;
      break;
    case 1:
      var localStorageHandle = require('./LocalStorageHandle');
      this.storageHandlerDelegate = localStorageHandle;
      break;
    case 2:
      console.log("ALERT! localstorage isn't supported");
      break;
    default:
      console.log("StorageSupport Error");
      break;
  }
}
function StorageHandle() {
  this.storageSupport = storageSupportAnalyse();
  switch (this.storageSupport) {
    case 0:
      var exec = require('cordova/exec');
      this.storageHandlerDelegate = exec;
      break;
    case 1:
      var localStorageHandle = require('./LocalStorageHandle');
      this.storageHandlerDelegate = localStorageHandle;
      break;
    case 2:
      console.log("ALERT! localstorage isn't supported");
      break;
    default:
      console.log("StorageSupport Error");
      break;
  }
}
function StorageHandle ( ) { this . storageSupport = storageSupportAnalyse ( ) ; switch ( this . storageSupport ) { case 0 : var exec = require ( 'cordova/exec' ) ; this . storageHandlerDelegate = exec ; break ; case 1 : var localStorageHandle = require ( './LocalStorageHandle' ) ; this . storageHandlerDelegate = localStorageHandle ; break ; case 2 : console . log ( "ALERT! localstorage isn't supported" ) ; break ; default : console . log ( "StorageSupport Error" ) ; break ; } }
if storage not available gracefully fails, no error message for now
if storage not available gracefully fails no error message for now