FIX: Include plugin CSS assets when previewing themes

This commit is contained in:
David Taylor 2020-05-15 18:12:53 +01:00
parent f86b123cfc
commit eee20a9814
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class ThemesController < ::ApplicationController
targets = view_context.mobile_view? ? [:mobile, :mobile_theme] : [:desktop, :desktop_theme]
targets << :admin if guardian.is_staff?
targets.append(*Discourse.find_plugin_css_assets(mobile_view: true, desktop_view: true))
object = targets.map do |target|
Stylesheet::Manager.stylesheet_data(target, theme_ids).map do |hash|