function updateLogin(loginHeader, loginSubHeader, iconURL, isUserSignedIn) {
    /** @const */ var showLogin = loginHeader || loginSubHeader;

    $('login-container').hidden = !showLogin;
    $('login-container').classList.toggle('signed-in', isUserSignedIn);
    $('card-slider-frame').classList.toggle('showing-login-area', !!showLogin);

    if (showLogin) {
      // TODO(dbeam): we should use .textContent instead to mitigate XSS.
      $('login-status-header').innerHTML = loginHeader;
      $('login-status-sub-header').innerHTML = loginSubHeader;

      var headerContainer = $('login-status-header-container');
      headerContainer.classList.toggle('login-status-icon', !!iconURL);
      headerContainer.style.backgroundImage =
          iconURL ? getUrlForCss(iconURL) : 'none';
    }

    if (shouldShowLoginBubble) {
      window.setTimeout(loginBubble.show.bind(loginBubble), 0);
      chrome.send('loginMessageSeen');
      shouldShowLoginBubble = false;
    } else if (loginBubble) {
      loginBubble.reposition();
    }
  }
/**
   * Updates the text displayed in the login container. If there is no text then
   * the login container is hidden.
   * @param {string} loginHeader The first line of text.
   * @param {string} loginSubHeader The second line of text.
   * @param {string} iconURL The url for the login status icon. If this is null
        then the login status icon is hidden.
   * @param {boolean} isUserSignedIn Indicates if the user is signed in or not.
   */
Updates the text displayed in the login container. If there is no text then
the login container is hidden.
@param {string} loginHeader The first line of text.
@param {string} loginSubHeader The second line of text.
@param {string} iconURL The url for the login status icon. If this is null
then the login status icon is hidden.
@param {boolean} isUserSignedIn Indicates if the user is signed in or not.
Updates the text displayed in the login container . If there is no text then the login container is hidden . @param { string } loginHeader The first line of text . @param { string } loginSubHeader The second line of text . @param { string } iconURL The url for the login status icon . If this is null then the login status icon is hidden . @param { boolean } isUserSignedIn Indicates if the user is signed in or not .
function updateLogin(loginHeader, loginSubHeader, iconURL, isUserSignedIn) {
     var showLogin = loginHeader || loginSubHeader;
    $('login-container').hidden = !showLogin;
    $('login-container').classList.toggle('signed-in', isUserSignedIn);
    $('card-slider-frame').classList.toggle('showing-login-area', !!showLogin);
    if (showLogin) {
      $('login-status-header').innerHTML = loginHeader;
      $('login-status-sub-header').innerHTML = loginSubHeader;
      var headerContainer = $('login-status-header-container');
      headerContainer.classList.toggle('login-status-icon', !!iconURL);
      headerContainer.style.backgroundImage =
          iconURL ? getUrlForCss(iconURL) : 'none';
    }
    if (shouldShowLoginBubble) {
      window.setTimeout(loginBubble.show.bind(loginBubble), 0);
      chrome.send('loginMessageSeen');
      shouldShowLoginBubble = false;
    } else if (loginBubble) {
      loginBubble.reposition();
    }
  }
function updateLogin ( loginHeader , loginSubHeader , iconURL , isUserSignedIn ) { var showLogin = loginHeader || loginSubHeader ; $ ( 'login-container' ) . hidden = ! showLogin ; $ ( 'login-container' ) . classList . toggle ( 'signed-in' , isUserSignedIn ) ; $ ( 'card-slider-frame' ) . classList . toggle ( 'showing-login-area' , ! ! showLogin ) ; if ( showLogin ) { $ ( 'login-status-header' ) . innerHTML = loginHeader ; $ ( 'login-status-sub-header' ) . innerHTML = loginSubHeader ; var headerContainer = $ ( 'login-status-header-container' ) ; headerContainer . classList . toggle ( 'login-status-icon' , ! ! iconURL ) ; headerContainer . style . backgroundImage = iconURL ? getUrlForCss ( iconURL ) : 'none' ; } if ( shouldShowLoginBubble ) { window . setTimeout ( loginBubble . show . bind ( loginBubble ) , 0 ) ; chrome . send ( 'loginMessageSeen' ) ; shouldShowLoginBubble = false ; } else if ( loginBubble ) { loginBubble . reposition ( ) ; } }
Updates the text displayed in the login container.
Updates the text displayed in the login container .
/** @const */ // TODO(dbeam): we should use .textContent instead to mitigate XSS.