index.js
function getQueryDelay(url) {
    var delay;
    if (options.delayQueryParam) {
      var parsedUrl = parseUrl(url, true);

      if (parsedUrl.query && parsedUrl.query[options.delayQueryParam]) {
        var queryDelay = parseInt(parsedUrl.query[options.delayQueryParam]);
        if (queryDelay > 0) {
          delay = queryDelay;
        }
      }
    }

    return delay;
  }
function getQueryDelay(url) {
    var delay;
    if (options.delayQueryParam) {
      var parsedUrl = parseUrl(url, true);

      if (parsedUrl.query && parsedUrl.query[options.delayQueryParam]) {
        var queryDelay = parseInt(parsedUrl.query[options.delayQueryParam]);
        if (queryDelay > 0) {
          delay = queryDelay;
        }
      }
    }

    return delay;
  }
function getQueryDelay ( url ) { var delay ; if ( options . delayQueryParam ) { var parsedUrl = parseUrl ( url , true ) ; if ( parsedUrl . query && parsedUrl . query [ options . delayQueryParam ] ) { var queryDelay = parseInt ( parsedUrl . query [ options . delayQueryParam ] ) ; if ( queryDelay > 0 ) { delay = queryDelay ; } } } return delay ; }
Return the query delay if it makes sense for this request, else undefined
Return the query delay if it makes sense for this request else undefined