diff --git a/4chan_x.user.js b/4chan_x.user.js index 67fd8c60d..6aef2d495 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2800,7 +2800,7 @@ return; } Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW; - $('link[rel="shortcut icon"]', d.head).setAttribute('type', 'image/x-icon'); + $('link[rel="shortcut icon"]', d.head).type = 'image/x-icon'; g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {}); tzOffset = (new Date()).getTimezoneOffset() / 60; g.chanOffset = 5 - tzOffset; diff --git a/script.coffee b/script.coffee index 48e16a13e..30f8ba407 100644 --- a/script.coffee +++ b/script.coffee @@ -2193,7 +2193,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' + $('link[rel="shortcut icon"]', d.head).type = 'image/x-icon' g.hiddenReplies = $.get "hiddenReplies/#{g.BOARD}/", {} tzOffset = (new Date()).getTimezoneOffset() / 60 # GMT -8 is given as +480; would GMT +8 be -480 ?