source/utilities/faviconHelpers/faviconHelpers.js
/**
 * Given an emoji string, append it to the document head
 * @param {string} name
 * @param {boolean} shouldOverride
 */
Given an emoji string, append it to the document head
@param {string} name
@param {boolean} shouldOverride
Given an emoji string append it to the document head @param { string } name @param { boolean } shouldOverride
function appendFaviconLink(name, shouldOverride) {
  const href = createEmojiUrl(name)
  if (!href) return
  if (existingFavicon) {
    existingFavicon.setAttribute("href", href)
  } else if (!hasFavicon || shouldOverride) {
    const link = createLink(href, EMOJI_SIZE, "image/png")
    existingFavicon = documentHead.appendChild(link)
    if (!shouldOverride) {
      const defaultLink = createLink("/favicon.ico")
      documentHead.appendChild(defaultLink)
    }
  }
}
function appendFaviconLink ( name , shouldOverride ) { const href = createEmojiUrl ( name ) if ( ! href ) return if ( existingFavicon ) { existingFavicon . setAttribute ( "href" , href ) } else if ( ! hasFavicon || shouldOverride ) { const link = createLink ( href , EMOJI_SIZE , "image/png" ) existingFavicon = documentHead . appendChild ( link ) if ( ! shouldOverride ) { const defaultLink = createLink ( "/favicon.ico" ) documentHead . appendChild ( defaultLink ) } } }
Given an emoji string, append it to the document head
 @param {string} name
 @param {boolean} shouldOverride
Given an emoji string append it to the document head @param { string } name @param { boolean } shouldOverride