From eee20a9814217376dd2e5fd48e2fb1a490bd2d1d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 15 May 2020 18:12:53 +0100 Subject: [PATCH] FIX: Include plugin CSS assets when previewing themes --- app/controllers/themes_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/themes_controller.rb b/app/controllers/themes_controller.rb index e13f880b05..6520ec7097 100644 --- a/app/controllers/themes_controller.rb +++ b/app/controllers/themes_controller.rb @@ -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|