From 525a3ebb790dfacfcb4270aecefece9810240789 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 12 Jan 2014 15:11:05 -0700 Subject: [PATCH] This is safe d.head is available at document-start in everything but Scriptish. Which we don't support --- src/Monitoring/Favicon.coffee | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Monitoring/Favicon.coffee b/src/Monitoring/Favicon.coffee index f87879fcc..09fa06162 100755 --- a/src/Monitoring/Favicon.coffee +++ b/src/Monitoring/Favicon.coffee @@ -1,12 +1,11 @@ Favicon = init: -> - $.ready -> - Favicon.el = $ 'link[rel="shortcut icon"]', d.head - Favicon.el.type = 'image/x-icon' - {href} = Favicon.el - Favicon.SFW = /ws\.ico$/.test href - Favicon.default = href - Favicon.switch() + Favicon.el = $ 'link[rel="shortcut icon"]', d.head + Favicon.el.type = 'image/x-icon' + {href} = Favicon.el + Favicon.SFW = /ws\.ico$/.test href + Favicon.default = href + Favicon.switch() switch: -> switch Conf['favicon']