extensions/amp-story/1.0/amp-story.js
/**
   * Initialize LiveStoryManager if this is a live story.
   * @private
   */
Initialize LiveStoryManager if this is a live story.
@private
Initialize LiveStoryManager if this is a live story . @private
initializeLiveStory_() {
    if (this.element.hasAttribute('live-story')) {
      this.liveStoryManager_ = new LiveStoryManager(this);
      this.liveStoryManager_.build();
      this.storeService_.dispatch(Action.ADD_TO_ACTIONS_ALLOWLIST, [
        {tagOrTarget: 'AMP-LIVE-LIST', method: 'update'},
      ]);
      this.element.addEventListener(AmpEvents_Enum.DOM_UPDATE, () => {
        this.liveStoryManager_.update();
        this.initializePages_().then(() => this.preloadPagesByDistance_());
      });
    }
  }
initializeLiveStory_ ( ) { if ( this . element . hasAttribute ( 'live-story' ) ) { this . liveStoryManager_ = new LiveStoryManager ( this ) ; this . liveStoryManager_ . build ( ) ; this . storeService_ . dispatch ( Action . ADD_TO_ACTIONS_ALLOWLIST , [ { tagOrTarget : 'AMP-LIVE-LIST' , method : 'update' } , ] ) ; this . element . addEventListener ( AmpEvents_Enum . DOM_UPDATE , ( ) => { this . liveStoryManager_ . update ( ) ; this . initializePages_ ( ) . then ( ( ) => this . preloadPagesByDistance_ ( ) ) ; } ) ; } }
Initialize LiveStoryManager if this is a live story.
Initialize LiveStoryManager if this is a live story .