```coffeescript
`import Ember from 'ember'`

manager = (headTag) ->
  @headTag = headTag if headTag

  return this

manager.prototype.getHeadTag = ->
  @headTag || document.getElementsByTagName('head')[0]

manager.prototype.setFavicon = (href) ->
  head = @getHeadTag()

  if oldLink = @getLinkTag()
    head.removeChild(oldLink)

  link = @createLinkTag()
  head.appendChild(link)
  link.setAttribute('href', href)

manager.prototype.getLinkTag = ->
  links = @getHeadTag().getElementsByTagName('link')
  if links.length
    for link in links
      if (link.getAttribute('rel') || '').trim() == 'icon'
        return link

manager.prototype.createLinkTag = ->
  link = document.createElement('link')
  link.setAttribute('rel', 'icon')
  link.setAttribute('type', 'image/png')
  @getHeadTag().appendChild(link)

`export default manager`
```

Set href on favicon <link> tag second time in a timeout
user
```coffeescript
`import Ember from 'ember'`

manager = (headTag) ->
  @headTag = headTag if headTag

  return this

manager.prototype.getHeadTag = ->
  @headTag || document.getElementsByTagName('head')[0]

manager.prototype.setFavicon = (href) ->
  head = @getHeadTag()

  if oldLink = @getLinkTag()
    head.removeChild(oldLink)

  link = @createLinkTag()
  head.appendChild(link)

  link.setAttribute('href', href)
  setTimeout ->
    link.setAttribute('href', href)
  , 1

manager.prototype.getLinkTag = ->
  links = @getHeadTag().getElementsByTagName('link')
  if links.length
    for link in links
      if (link.getAttribute('rel') || '').trim() == 'icon'
        return link

manager.prototype.createLinkTag = ->
  link = document.createElement('link')
  link.setAttribute('rel', 'icon')
  link.setAttribute('type', 'image/png')
  @getHeadTag().appendChild(link)

`export default manager`
```
assistant