mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 23:35:38 +08:00
DEV: Fix watching plugin stylesheet changes locally
I broke this in e6dbb4fcf52fa74853ed45616dd7cbf620c7deca
This commit is contained in:
parent
a1ec711373
commit
d0953dcda9
@ -111,12 +111,12 @@ module Stylesheet
|
||||
targets = [plugin_name]
|
||||
targets.push("#{plugin_name}_mobile") if DiscoursePluginRegistry.stylesheets_exists?(plugin_name, :mobile)
|
||||
targets.push("#{plugin_name}_desktop") if DiscoursePluginRegistry.stylesheets_exists?(plugin_name, :desktop)
|
||||
|
||||
message = targets.map! do |name|
|
||||
msgs = []
|
||||
active_themes.each do |theme_id|
|
||||
msgs << Stylesheet::Manager.stylesheet_data(name.to_sym, theme_id)
|
||||
end
|
||||
msgs
|
||||
end.flatten!
|
||||
MessageBus.publish '/file-change', message
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user