mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 03:29:31 +08:00
DEV: Fix stylesheet watcher (#16635)
This commit is contained in:
parent
2d143ec2fb
commit
64f03a7d05
|
@ -93,7 +93,7 @@ module Stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
def core_assets_refresh(target)
|
def core_assets_refresh(target)
|
||||||
if target.match(/wcag|color_definitions/)
|
if target&.match(/wcag|color_definitions/)
|
||||||
Stylesheet::Manager.clear_color_scheme_cache!
|
Stylesheet::Manager.clear_color_scheme_cache!
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user