]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_head.html.erb
Merge remote-tracking branch 'upstream/pull/5401'
[rails.git] / app / views / layouts / _head.html.erb
index 8cab522236d4b20cc921f796cb40aff33a92847b..bab19c217191fb089bc1681a5e93851c3df965dd 100644 (file)
@@ -5,7 +5,7 @@
   <%= javascript_include_tag "turbo", :type => "module" %>
   <%= javascript_include_tag "application" %>
   <%= javascript_include_tag "i18n/#{I18n.locale}" %>
   <%= javascript_include_tag "turbo", :type => "module" %>
   <%= javascript_include_tag "application" %>
   <%= javascript_include_tag "i18n/#{I18n.locale}" %>
-  <% if preferred_site_color_scheme == "auto" %>
+  <% if preferred_color_scheme(:site) == "auto" %>
     <%= stylesheet_link_tag "screen-auto-#{dir}", :media => "screen" %>
   <% else %>
     <%= stylesheet_link_tag "screen-manual-#{dir}", :media => "screen" %>
     <%= stylesheet_link_tag "screen-auto-#{dir}", :media => "screen" %>
   <% else %>
     <%= stylesheet_link_tag "screen-manual-#{dir}", :media => "screen" %>