Set href on favicon <link> tag second time in a timeout
This somehow fixes chrome inconsistencies when changing favicon
This commit is contained in:
parent
8087761c8a
commit
520361cb78
|
@ -16,7 +16,11 @@ manager.prototype.setFavicon = (href) ->
|
||||||
|
|
||||||
link = @createLinkTag()
|
link = @createLinkTag()
|
||||||
head.appendChild(link)
|
head.appendChild(link)
|
||||||
|
|
||||||
link.setAttribute('href', href)
|
link.setAttribute('href', href)
|
||||||
|
setTimeout ->
|
||||||
|
link.setAttribute('href', href)
|
||||||
|
, 1
|
||||||
|
|
||||||
manager.prototype.getLinkTag = ->
|
manager.prototype.getLinkTag = ->
|
||||||
links = @getHeadTag().getElementsByTagName('link')
|
links = @getHeadTag().getElementsByTagName('link')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user