extensions/amp-story/1.0/amp-story-system-layer.js
/**
   * Reacts to the ad state updates and updates the UI accordingly.
   * @param {boolean} isAd
   * @private
   */
Reacts to the ad state updates and updates the UI accordingly.
@param {boolean} isAd
@private
Reacts to the ad state updates and updates the UI accordingly . @param { boolean } isAd @private
onAdStateUpdate_(isAd) {
    isAd
      ? this.getShadowRoot().setAttribute(AD_SHOWING_ATTRIBUTE, '')
      : this.getShadowRoot().removeAttribute(AD_SHOWING_ATTRIBUTE);
  }
onAdStateUpdate_ ( isAd ) { isAd ? this . getShadowRoot ( ) . setAttribute ( AD_SHOWING_ATTRIBUTE , '' ) : this . getShadowRoot ( ) . removeAttribute ( AD_SHOWING_ATTRIBUTE ) ; }
Reacts to the ad state updates and updates the UI accordingly.
Reacts to the ad state updates and updates the UI accordingly .
// This is not in vsync as we are showing/hiding items in the system layer // based upon this attribute, and when wrapped in vsync there is a visual // lag after the page change before the icons are updated.