swapHeader(header){
    this.header = header;
    if(this.iframe && this.pScroller){
      this.pScroller.then(hs=>hs.header = header);
    }
  }
/**
   * Function that sets this.header to a new HTMLElement and does the same for HeaderScroller
   * */
Function that sets this.header to a new HTMLElement and does the same for HeaderScroller
Function that sets this . header to a new HTMLElement and does the same for HeaderScroller
swapHeader(header){
    this.header = header;
    if(this.iframe && this.pScroller){
      this.pScroller.then(hs=>hs.header = header);
    }
  }
swapHeader ( header ) { this . header = header ; if ( this . iframe && this . pScroller ) { this . pScroller . then ( hs => hs . header = header ) ; } }
Function that sets this.header to a new HTMLElement and does the same for HeaderScroller
Function that sets this . header to a new HTMLElement and does the same for HeaderScroller