From 6277e2230089f312f4cc541e8811e7e843af6267 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 27 Jul 2014 12:06:05 +0200 Subject: [PATCH] =?UTF-8?q?La=20gestion=20des=20favicons=20cass=C3=A9s=20c?= =?UTF-8?q?ar=20non=20pr=C3=A9sents=20est=20plus=20propre=20entre=20les=20?= =?UTF-8?q?navigateurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/application.js.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee index f836c5ce..b4a73eaa 100644 --- a/app/assets/javascripts/application.js.coffee +++ b/app/assets/javascripts/application.js.coffee @@ -38,5 +38,7 @@ $(document).on 'page:load', -> $(this).updatePolyfill() $(document).ready -> - $("img").error -> - $(this).hide() + # Hides the chrome broken image when image is absent + if !Modernizr.testAllProps('forceBrokenImageIcon') + $('img.favicon').one 'error', -> + $(this).css visibility: 'hidden'