FIX: Live reload plugin stylesheets when the color scheme changes

This commit is contained in:
David Taylor
2019-09-16 14:56:19 +01:00
parent 081c36a459
commit 3da9b99dbf
3 changed files with 14 additions and 8 deletions

View File

@ -264,6 +264,7 @@ class Theme < ActiveRecord::Base
if with_scheme
targets.prepend(:desktop, :mobile, :admin)
targets.append(*Discourse.find_plugin_css_assets(mobile_view: true, desktop_view: true))
Stylesheet::Manager.cache.clear if clear_manager_cache
end