buildUrl() {
    let url = this.hostname;

    if (this.port !== 80) {
      url += ':' + this.port;
    }

    let path = this.path;
    if (path.substring(0, 1) !== '/') {
      path = '/' + path;
    }

    url += path;

    url = replaceUrlParams(url, this.givenArgs);
    url = url.replace('//', '/');
    url = 'https://' + url;
    return url;
  }
/*
     Builds the URL that we will query reddit with.
   */
Builds the URL that we will query reddit with.
Builds the URL that we will query reddit with .
buildUrl() {
    let url = this.hostname;
    if (this.port !== 80) {
      url += ':' + this.port;
    }
    let path = this.path;
    if (path.substring(0, 1) !== '/') {
      path = '/' + path;
    }
    url += path;
    url = replaceUrlParams(url, this.givenArgs);
    url = url.replace('//', '/');
    url = 'https://' + url;
    return url;
  }
buildUrl ( ) { let url = this . hostname ; if ( this . port !== 80 ) { url += ':' + this . port ; } let path = this . path ; if ( path . substring ( 0 , 1 ) !== '/' ) { path = '/' + path ; } url += path ; url = replaceUrlParams ( url , this . givenArgs ) ; url = url . replace ( '//' , '/' ) ; url = 'https://' + url ; return url ; }
Builds the URL that we will query reddit with.
Builds the URL that we will query reddit with .