From e64f9c87fb4bdc7505c81fc3b388d6b2841c5566 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 21 Jun 2021 15:48:30 +0800 Subject: [PATCH] DEV: Fix broken stylesheet watcher. Follow-up to 8e3691d5370bb95d99fe750f46287763721fcc9c --- lib/stylesheet/watcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!