extensions/amp-live-list/0.1/live-list-manager.js
/**
   * Makes a request to the given url for the latest document.
   *
   * @private
   */
Makes a request to the given url for the latest document.
@private
Makes a request to the given url for the latest document . @private
fetchDocument_() {
    let url = this.url_;
    if (this.latestUpdateTime_ > 0) {
      url = addParamToUrl(url, 'amp_latest_update_time',
          String(this.latestUpdateTime_));
    }
    return Services.xhrFor(this.ampdoc.win)
        .fetchDocument(url, {
          requireAmpResponseSourceOrigin: false,
        }).then(this.getLiveLists_.bind(this));
  }
fetchDocument_ ( ) { let url = this . url_ ; if ( this . latestUpdateTime_ > 0 ) { url = addParamToUrl ( url , 'amp_latest_update_time' , String ( this . latestUpdateTime_ ) ) ; } return Services . xhrFor ( this . ampdoc . win ) . fetchDocument ( url , { requireAmpResponseSourceOrigin : false , } ) . then ( this . getLiveLists_ . bind ( this ) ) ; }
Makes a request to the given url for the latest document.
Makes a request to the given url for the latest document .
// TODO(erwinm): add update time here when possible.