From b05aa000d89fdc245c9b95f4a60a3503280057fb Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 15 May 2011 10:27:37 -0700 Subject: [PATCH] fix favicon type once only --- 4chan_x.js | 2 +- script.coffee | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index b901422d1..cbf855c61 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1961,7 +1961,6 @@ favicon = $('link[rel="shortcut icon"]', d.head); clone = favicon.cloneNode(true); clone.href = href; - clone.setAttribute('type', 'image/x-icon'); return $.replace(favicon, clone); } }; @@ -2277,6 +2276,7 @@ return; } Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW; + $('link[rel="shortcut icon"]', d.head).setAttribute('type', 'image/x-icon'); g.hiddenReplies = $.getValue("hiddenReplies/" + g.BOARD + "/", {}); tzOffset = (new Date()).getTimezoneOffset() / 60; g.chanOffset = 5 - tzOffset; diff --git a/script.coffee b/script.coffee index bc141d7d3..f1bfa3499 100644 --- a/script.coffee +++ b/script.coffee @@ -1540,10 +1540,8 @@ Favicon = favicon = $ 'link[rel="shortcut icon"]', d.head clone = favicon.cloneNode true clone.href = href - clone.setAttribute 'type', 'image/x-icon' $.replace favicon, clone - redirect = -> switch g.BOARD when 'a', 'g', 'lit', 'sci', 'tv' @@ -1748,6 +1746,7 @@ main = return Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW + $('link[rel="shortcut icon"]', d.head).setAttribute 'type', 'image/x-icon' g.hiddenReplies = $.getValue "hiddenReplies/#{g.BOARD}/", {} tzOffset = (new Date()).getTimezoneOffset() / 60 # GMT -8 is given as +480; would GMT +8 be -480 ?