mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Live reload plugin stylesheets when the color scheme changes
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user