src/webfinger.js
function isSecure(url) {
    if (typeof url !== 'string') {
      return false;
    }
    var parts = url.split('://');
    if (parts[0] === 'https') {
      return true;
    }
    return false;
  }
function isSecure(url) {
    if (typeof url !== 'string') {
      return false;
    }
    var parts = url.split('://');
    if (parts[0] === 'https') {
      return true;
    }
    return false;
  }
function isSecure ( url ) { if ( typeof url !== 'string' ) { return false ; } var parts = url . split ( '://' ) ; if ( parts [ 0 ] === 'https' ) { return true ; } return false ; }
given a URL ensures it's HTTPS. returns false for null string or non-HTTPS URL.
given a URL ensures it s HTTPS . returns false for null string or non - HTTPS URL .