Merge pull request #3187 from linc01n/fix_custom_mobile_top_footer
Fix customize HTML/CSS only show desktop code
This commit is contained in:
commit
e9d5c5c0a8
|
@ -284,9 +284,10 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def custom_html_json
|
||||
target = view_context.mobile_view? ? :mobile : :desktop
|
||||
data = {
|
||||
top: SiteCustomization.custom_top(session[:preview_style]),
|
||||
footer: SiteCustomization.custom_footer(session[:preview_style])
|
||||
top: SiteCustomization.custom_top(session[:preview_style], target),
|
||||
footer: SiteCustomization.custom_footer(session[:preview_style], target)
|
||||
}
|
||||
|
||||
if DiscoursePluginRegistry.custom_html
|
||||
|
|
Loading…
Reference in New Issue