Fix 4chan X UI elements becoming transparent during Halloween theme.

This commit is contained in:
ccd0 2015-10-31 11:40:10 -07:00
parent a3eea420bc
commit 94577277aa

View File

@ -190,7 +190,7 @@ Main =
setStyle = ->
$.rmClass doc, style
for styleSheet in styleSheets
if styleSheet.href is mainStyleSheet.href
if styleSheet.href is mainStyleSheet?.href
style = styleSheet.title.toLowerCase().replace('new', '').trim().replace /\s+/g, '-'
break
$.addClass doc, style