Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix broken stylesheet watcher.

Alan Guo Xiang Tane64f9c87fb4b
diff --git a/lib/stylesheet/watcher.rb b/lib/stylesheet/watcher.rb
index a8bbda5f003..0827cb6208d 100644
--- a/lib/stylesheet/watcher.rb
+++ b/lib/stylesheet/watcher.rb
@@ -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!