chore: Do not convert thin_mode preference to string to compare it (#5568)

This commit is contained in:
Fijxu
2026-01-30 18:01:16 -03:00
committed by GitHub
parent abb0aa436c
commit b521e3be6c

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