src/auro-banner.js
// This function removes a CSS selector if the footer slot is empty
This function removes a CSS selector if the footer slot is empty
This function removes a CSS selector if the footer slot is empty
firstUpdated() {
    const slotNodes = this.shadowRoot.querySelectorAll(`.bannerWrapper slot`);
    for (const item of slotNodes) {
      this.slt = item.assignedNodes();
      if (this.slt.length === 0) {
        item.removeAttribute("class");
      }
    }
  }
firstUpdated ( ) { const slotNodes = this . shadowRoot . querySelectorAll ( ` ` ) ; for ( const item of slotNodes ) { this . slt = item . assignedNodes ( ) ; if ( this . slt . length === 0 ) { item . removeAttribute ( "class" ) ; } } }
This function removes a CSS selector if the footer slot is empty
This function removes a CSS selector if the footer slot is empty
// eslint-disable-next-line no-magic-numbers