chore: Do not convert thin_mode preference to string to compare it

This commit is contained in:
Fijxu 2025-12-14 20:25:42 -03:00
parent 35d1d499bc
commit f17abfb051

View file

@ -94,8 +94,8 @@ module Invidious::Routes::BeforeAll
end
dark_mode = convert_theme(env.params.query["dark_mode"]?) || preferences.dark_mode.to_s
thin_mode = env.params.query["thin_mode"]? || preferences.thin_mode.to_s
thin_mode = thin_mode == "true"
thin_mode = env.params.query["thin_mode"]?
thin_mode = (thin_mode == "true") || preferences.thin_mode
locale = env.params.query["hl"]? || preferences.locale
preferences.dark_mode = dark_mode