mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 09:15:38 +08:00
PERF: Remove an unncessary query when check for dark mode.
This commit is contained in:
parent
fb7bbae3f4
commit
4994b0ed34
@ -473,6 +473,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def dark_color_scheme?
|
||||
return false if scheme_id.blank?
|
||||
ColorScheme.find_by_id(scheme_id)&.is_dark?
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user