From b38ef315fc87e61cf22222b734a41ebf8019793d Mon Sep 17 00:00:00 2001 From: Mayhem Date: Thu, 28 Apr 2011 22:04:12 +0200 Subject: [PATCH] Fix custom favicons on Chrome. --- 4chan_x.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.js b/4chan_x.js index 353fb8225..c7bb600ca 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1692,6 +1692,7 @@ favicon = $('link[rel="shortcut icon"]', d.head); clone = favicon.cloneNode(true); clone.href = href; + clone.setAttribute('type', 'image/x-icon'); return $.replace(favicon, clone); } }; diff --git a/script.coffee b/script.coffee index a6012e3ed..01a4d6914 100644 --- a/script.coffee +++ b/script.coffee @@ -1322,6 +1322,7 @@ Favicon = favicon = $ 'link[rel="shortcut icon"]', d.head clone = favicon.cloneNode true clone.href = href + clone.setAttribute 'type', 'image/x-icon' $.replace favicon, clone