Clone and replace favicon only on Firefox.

This commit is contained in:
Nicolas Stepien 2011-11-27 19:20:35 +01:00
parent 925b7fc795
commit a2f1c83503
2 changed files with 7 additions and 4 deletions

View File

@ -2684,8 +2684,10 @@
l = unread.replies.length; l = unread.replies.length;
favicon = $('link[rel="shortcut icon"]', d.head); favicon = $('link[rel="shortcut icon"]', d.head);
favicon.href = g.dead ? l ? Favicon.unreadDead : Favicon.dead : l ? Favicon.unread : Favicon["default"]; favicon.href = g.dead ? l ? Favicon.unreadDead : Favicon.dead : l ? Favicon.unread : Favicon["default"];
clone = favicon.cloneNode(true); if (engine === "Gecko") {
return $.replace(favicon, clone); clone = favicon.cloneNode(true);
return $.replace(favicon, clone);
}
} }
}; };

View File

@ -2090,8 +2090,9 @@ Favicon =
Favicon.default Favicon.default
#XXX `favicon.href = href` doesn't work on Firefox #XXX `favicon.href = href` doesn't work on Firefox
clone = favicon.cloneNode true if engine is "Gecko"
$.replace favicon, clone clone = favicon.cloneNode true
$.replace favicon, clone
redirect = -> redirect = ->
switch g.BOARD switch g.BOARD