code: function (url) {
            if (url.substring(0, 2) !== '//' &&
              url.indexOf('://') === -1 &&
              whitelistLocalRequests) {
              return true;
            }
  
            for (var i = domains.length; i--;) {
              if (url.indexOf(domains[i]) !== -1) {
                return true;
              }
            }
  
            return false;
          }
docs: Check if the url domain is on the whitelist
  
  @param {string} url
  
  @returns {boolean}