DEV: Fix broken stylesheet watcher.

Follow-up to 8e3691d537
This commit is contained in:
Alan Guo Xiang Tan 2021-06-21 15:48:30 +08:00
parent 8c213fa98b
commit e64f9c87fb
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ module Stylesheet
message = targets.map! do |name|
msgs = []
active_themes.each do |theme_id|
msgs << Stylesheet::Manager.stylesheet_data(name.to_sym, theme_id)
msgs << Stylesheet::Manager.new(theme_id: theme_id).stylesheet_data(name.to_sym)
end
msgs
end.flatten!
@ -116,7 +116,7 @@ module Stylesheet
message = targets.map! do |name|
msgs = []
active_themes.each do |theme_id|
msgs << Stylesheet::Manager.stylesheet_data(name.to_sym, theme_id)
msgs << Stylesheet::Manager.new(theme_id: theme_id).stylesheet_data(name.to_sym)
end
msgs
end.flatten!