fix favicon type once only

This commit is contained in:
James Campos 2011-05-15 10:27:37 -07:00
parent b00bc31097
commit b05aa000d8
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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 ?