Thibaut 10 лет назад
Родитель
Сommit
5882c1d2d5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/app.rb

+ 2 - 2
lib/app.rb

@@ -119,11 +119,11 @@ class App < Sinatra::Application
     end
 
     def main_stylesheet_path
-      stylesheet_paths[cookies[:dark].present? ? :dark : :default]
+      stylesheet_paths[cookies[:dark].nil? ? :default : :dark]
     end
 
     def alternate_stylesheet_path
-      stylesheet_paths[cookies[:dark].present? ? :default : :dark]
+      stylesheet_paths[cookies[:dark].nil? ? :dark : :default]
     end
 
     def stylesheet_paths