allow for empty headers properly
This commit is contained in:
parent
85973ce6b0
commit
168bb01439
|
@ -75,7 +75,11 @@ footer:after{ content: '#{error}' }"
|
|||
def self.custom_header(preview_style)
|
||||
preview_style ||= enabled_style
|
||||
style = lookup_style(preview_style)
|
||||
style.header.html_safe if style
|
||||
if style && style.header
|
||||
style.header.html_safe
|
||||
else
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
def self.override_default_style(preview_style)
|
||||
|
|
Loading…
Reference in New Issue