From 520361cb788a7360668db44152ab5fb2f4a0ca20 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 25 Feb 2015 17:00:55 +0100 Subject: [PATCH] Set href on favicon tag second time in a timeout This somehow fixes chrome inconsistencies when changing favicon --- app/utils/favicon-manager.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/utils/favicon-manager.coffee b/app/utils/favicon-manager.coffee index 90eaa4ff..4be9c524 100644 --- a/app/utils/favicon-manager.coffee +++ b/app/utils/favicon-manager.coffee @@ -16,7 +16,11 @@ manager.prototype.setFavicon = (href) -> link = @createLinkTag() head.appendChild(link) + link.setAttribute('href', href) + setTimeout -> + link.setAttribute('href', href) + , 1 manager.prototype.getLinkTag = -> links = @getHeadTag().getElementsByTagName('link')