code: function isCordova() {
        var isCordova = null;
        var idxIsCordova = window.location.search.indexOf('isCordova=');
  
        if (idxIsCordova >= 0) {
          var isCordova = window.location.search.substring(idxIsCordova + 10);
          if (isCordova.indexOf('&') >= 0) {
            isCordova = isCordova.substring(0, isCordova.indexOf('&'));
          }
        }
        return (isCordova == 'true');
      }
docs: Get the isCordova boolean from the URL.