diff --git a/4chan_x.user.js b/4chan_x.user.js index f0c043e59..cce234d7f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2684,8 +2684,10 @@ l = unread.replies.length; favicon = $('link[rel="shortcut icon"]', d.head); favicon.href = g.dead ? l ? Favicon.unreadDead : Favicon.dead : l ? Favicon.unread : Favicon["default"]; - clone = favicon.cloneNode(true); - return $.replace(favicon, clone); + if (engine === "Gecko") { + clone = favicon.cloneNode(true); + return $.replace(favicon, clone); + } } }; diff --git a/script.coffee b/script.coffee index fa4f0fec0..f76caa804 100644 --- a/script.coffee +++ b/script.coffee @@ -2090,8 +2090,9 @@ Favicon = Favicon.default #XXX `favicon.href = href` doesn't work on Firefox - clone = favicon.cloneNode true - $.replace favicon, clone + if engine is "Gecko" + clone = favicon.cloneNode true + $.replace favicon, clone redirect = -> switch g.BOARD